Access Management
Manage users, service principals, groups and their permissions in Accounts and Workspaces
Get permission assignments GA
GET
Get the permission assignments for the specified <Account> and <Workspace>.
API scopes: access-management
Parameters
- account_idstringRequiredpath
The account ID.
- workspace_idint64Requiredpath
The workspace ID for the account.
Response
- permission_assignmentsarray of object
Array of permissions assignments defined for a workspace.
Show child attributesHide child attributes
- principalobject
Information about the principal assigned to the workspace.
Show child attributesHide child attributes
- user_namestring
The username of the user. Present only if the principal is a user.
- group_namestring
The group name of the group. Present only if the principal is a group.
- service_principal_namestring
The name of the service principal. Present only if the principal is a service principal.
- principal_idint64
The unique, opaque id of the principal.
- display_namestring
The display name of the principal.
- permissionsarray of string
The permissions level of the principal.
UNKNOWNUSERADMIN
- errorstring
Error response associated with a workspace permission assignment, if any.
List workspace permissions GA
GET
Get an array of workspace permissions for the specified account and workspace.
API scopes: access-management
Parameters
- account_idstringRequiredpath
The account ID.
- workspace_idint64Requiredpath
The workspace ID.
Response
- permissionsarray of object
Array of permissions defined for a workspace.
Show child attributesHide child attributes
- permission_levelstring
UNKNOWNUSERADMIN
- descriptionstring
The results of a permissions query.
Get assignable roles for a resource Public Preview
GET
Gets all the roles that can be granted on an account level resource. A role is grantable if the rule set on the resource can contain an access rule of the role.
API scopes: access-management
Parameters
- account_idstringRequiredpath
<Databricks> account ID.
- resourcestringRequiredquery
The resource name for which assignable roles will be listed.
Examples Summary resource=accounts/<ACCOUNT_ID>A resource name for the account. resource=accounts/<ACCOUNT_ID>/groups/<GROUP_ID>A resource name for the group. resource=accounts/<ACCOUNT_ID>/servicePrincipals/<SP_ID>A resource name for the service principal. resource=accounts/<ACCOUNT_ID>/tagPolicies/<TAG_POLICY_ID>A resource name for the tag policy.
Response
- rolesarray of object
Show child attributesHide child attributes
- namestringRequired
Role to assign to a principal or a list of principals on a resource.
Get assignable roles for a resource Public Preview
GET
Gets all the roles that can be granted on an account level resource. A role is grantable if the rule set on the resource can contain an access rule of the role.
API scopes: access-management
Parameters
- account_idstringquery
<Databricks> account ID.
- resourcestringRequiredquery
The resource name for which assignable roles will be listed.
Examples Summary resource=accounts/<ACCOUNT_ID>A resource name for the account. resource=accounts/<ACCOUNT_ID>/groups/<GROUP_ID>A resource name for the group. resource=accounts/<ACCOUNT_ID>/servicePrincipals/<SP_ID>A resource name for the service principal. resource=accounts/<ACCOUNT_ID>/tagPolicies/<TAG_POLICY_ID>A resource name for the tag policy.
Response
- rolesarray of object
Show child attributesHide child attributes
- namestringRequired
Role to assign to a principal or a list of principals on a resource.