when assigning account-level user groups to a workspace that has Identity Federation(IF) enabled and if the group already exists we get the below error. The error statement should be revised to say that "Account level user group already exists in the workspace. Please delete the existing group in the workspace to fix this".
Error
Error: cannot create mws permission assignment: Databricks API (/api/2.0/preview/accounts/c8edb4b9-2ef2-49e3-a043-aa7d9887433e/workspaces/4136265416458520/permissionassignments/principals/413050357358276) requires you to set `host` property (or DATABRICKS_HOST env variable) to result of `databricks_mws_workspaces.this.workspace_url`. This error may happen if you're using provider in both normal and multiworkspace mode. Please refactor your code into different modules. Runnable example that we use for integration testing can be found in this repository at https://registry.terraform.io/providers/databricks/databricks/latest/docs/guides/aws-workspace
with databricks_mws_permission_assignment.central_workspace_users_assignments["413050357358276"]
on groups_workspaces.tf line 66, in resource "databricks_mws_permission_assignment" "central_workspace_users_assignments":
resource "databricks_mws_permission_assignment" "central_workspace_users_assignments" {
when assigning account-level user groups to a workspace that has Identity Federation(IF) enabled and if the group already exists we get the below error. The error statement should be revised to say that "Account level user group already exists in the workspace. Please delete the existing group in the workspace to fix this".
Error
Configuration
Terraform and provider versions
Terraform core version: 1.0.0 Databricks TF provider version: 1.6.2