Skip to content

Commit

Permalink
clarified databricks_permissions doc for service principals (#1426)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkvuong committed Jul 7, 2022
1 parent 6cf4d9b commit ac9bd8f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/resources/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,11 @@ Attributes are:
-> **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.

- `permission_level` - (Required) permission level according to specific resource. See examples above for the reference.
- `user_name` - (Optional) name of the [user](user.md), which should be used if group name is not used
- `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.

Exactly one of the below attributes is required:
- `user_name` - (Optional) name of the [user](user.md).
- `service_principal_name` - (Optional) Application ID of the [service_principal](service_principal.md#application_id).
- `group_name` - (Optional) name of the [group](group.md). We recommend setting permissions on groups.

## Attribute Reference

Expand Down

0 comments on commit ac9bd8f

Please sign in to comment.