permissions
Operations on a permissions
resource.
Overview
Name | permissions |
Type | Resource |
Id | databricks_workspace.iam.permissions |
Fields
Name | Datatype |
---|---|
access_control_list | array |
object_id | string |
object_type | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | request_object_id, request_object_type, deployment_name | Gets the permissions of an object. Objects can inherit permissions from their parent objects or root object. |
update | UPDATE | request_object_id, request_object_type, deployment_name | Updates the permissions on an object. Objects can inherit permissions from their parent objects or root object. |
set | REPLACE | request_object_id, request_object_type, deployment_name | Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct permissions if none are specified. Objects can inherit permissions from their parent objects or root object. |
SELECT
examples
SELECT
access_control_list,
object_id,
object_type
FROM databricks_workspace.iam.permissions
WHERE request_object_id = '{{ request_object_id }}' AND
request_object_type = '{{ request_object_type }}' AND
deployment_name = '{{ deployment_name }}';
UPDATE
example
Updates a permissions
resource.
/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.iam.permissions
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE request_object_id = '{{ request_object_id }}' AND
request_object_type = '{{ request_object_type }}' AND
deployment_name = '{{ deployment_name }}';
REPLACE
example
Replaces a permissions
resource.
/*+ update */
-- replace field1, field2, etc. with the fields you want to update
REPLACE databricks_workspace.iam.permissions
SET field1 = '{ value1 }',
field2 = '{ value2 }', ...
WHERE request_object_id = '{{ request_object_id }}' AND
request_object_type = '{{ request_object_type }}' AND
deployment_name = '{{ deployment_name }}';