Skip to main content

assignable_roles

Creates, updates, deletes, gets or lists an assignable_roles resource.

Overview

Nameassignable_roles
TypeResource
Iddatabricks_workspace.iam.assignable_roles

Fields

The following fields are returned by SELECT queries:

Assignable roles were returned successfully.

NameDatatypeDescription
namestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getassignablerolesforresourceselectdeployment_nameGets 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

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.

SELECT
name
FROM databricks_workspace.iam.assignable_roles
WHERE deployment_name = '{{ deployment_name }}' -- required;