Skip to content

[ISSUE] The databricks_group_member resource shouldn't allow you to add users to the "users" group #1088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Xophmeister opened this issue Feb 3, 2022 · 1 comment
Labels
wontfix This will not be worked on

Comments

@Xophmeister
Copy link

Configuration

data "databricks_group" "users" {
  display_name = "users"
}

resource "databricks_user" "test" {
  user_name    = "[email protected]"
  display_name = "Testy McTestface"
}

resource "databricks_group_member" "membership" {
  group_id  = data.databricks.users.id
  member_id = databricks_user.test.id
}

Expected Behavior

The users group is a pseudogroup of all users in Databricks, which you should never explicitly add users to. The provider should forbid this.

Actual Behavior

This works fine. The problem comes when you try to destroy the membership resource: The Databricks API forbids this and so terraform destroy will fail.

Steps to Reproduce

  1. terraform apply
  2. terraform destroy

Terraform and provider versions

Terraform v1.0.11
on linux_amd64
+ provider registry.terraform.io/databrickslabs/databricks v0.4.7
@nfx
Copy link
Contributor

nfx commented Feb 4, 2022

databricks_group_member knows nothing of system groups - it operates purely on IDs.

@nfx nfx closed this as completed Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants