Skip to content

[ISSUE] Issue with databricks_permissions resource: cannot change permissions when I am owner #2407

@MigQ2

Description

@MigQ2

Configuration

resource "databricks_permissions" "this" {
  job_id = databricks_job.this.id
  access_control {
    user_name        = "[email protected]"
    permission_level = "IS_OWNER"
  }

}

Expected Behavior

terraform apply works fine and the permissions for the job are properly applied

Actual Behavior

I get the following error: Error: cannot create permissions: it is not possible to decrease administrative permissions for the current user

Steps to Reproduce

  1. Create a job with Terraform with the permissions block I linked above

Terraform and provider versions

1.19.0

Additional information

  • In the UI I see am the creator and owner of the job for which I am trying to set permissions
  • I have other jobs where I am owner (they run as my user) but not creator and those work fine when I apply terraform with the same permissions block for that job
  • I am a workspace admin
  • Also I found a related broken link in the docs: the removes link here gives a 404

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions