Skip to content

Commit 164aa60

Browse files
authored
clarified databricks_permissions doc for service principals (#1426)
1 parent d83a39a commit 164aa60

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/resources/permissions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,11 @@ Attributes are:
698698
-> **Note** It is not possible to lower permissions for `admins` or your own user anywhere from `CAN_MANAGE` level, so Databricks Terraform Provider [removes](https://github.com/databricks/terraform-provider-databricks/blob/master/access/resource_permissions.go#L261-L271) those `access_control` blocks automatically.
699699

700700
- `permission_level` - (Required) permission level according to specific resource. See examples above for the reference.
701-
- `user_name` - (Optional) name of the [user](user.md), which should be used if group name is not used
702-
- `group_name` - (Optional) name of the [group](group.md), which should be used if the user name is not used. We recommend setting permissions on groups.
701+
702+
Exactly one of the below attributes is required:
703+
- `user_name` - (Optional) name of the [user](user.md).
704+
- `service_principal_name` - (Optional) Application ID of the [service_principal](service_principal.md#application_id).
705+
- `group_name` - (Optional) name of the [group](group.md). We recommend setting permissions on groups.
703706

704707
## Attribute Reference
705708

0 commit comments

Comments
 (0)