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
- 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