Closed bkvarda closed 2 years ago
+1 - we're waiting to enable identity federation to have a plan so we can continue to support adding new groups (without initial members) to the workspace and assign an instance profile.
The workaround is interesting but seems to imply that the account level groups and workspace level groups are associated by display_name
- if that's true and the intended way to associate the two then we could get everything working with that example terraform
:+1: Also looking for official guidance on the long term solution (@bkvarda thank you for sharing the workaround)
Support is coming very soon =)
When Identity Federation rolled out, it disabled user/group creation at the workspace level and forces the use of account-level groups/users. In order to create workspace permissions for these users/groups, they need to first be assigned to the workspace. There appears to not currently be a way to do this assignment in Terraform, which basically breaks existing code for onboarding of new groups to workspaces.
In the UI when you assign users to a workspace it sends a PUT to https://accounts.cloud.databricks.com/api/2.0/preview/accounts/4c302ea8-1234-1234-1234-D1234567/roleassignments/principals/1234567891011
Provider version
0.6.0
Reproduction
After Identity Federation is enabled, creating a group at the workspace-level no longer works.
If you create the group at the account-level instead, that works. But you can not reference that group in workspace permissions:
The plan:
Then fails:
Workaround
It seems like as a workaround you can do something like this:
This also appears to assign them to the workspace in the accounts UI, but not sure if there are any implications of doing it this way nor whether this is a long-term solution.