Skip to main content

workspace_permission_assignments

Creates, updates, deletes, gets or lists a workspace_permission_assignments resource.

Overview

Nameworkspace_permission_assignments
TypeResource
Iddatabricks_account.iam.workspace_permission_assignments

Fields

The following fields are returned by SELECT queries:

Request completed successfully.

NameDatatypeDescription
errorstring
permissionsarray
principalobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectGet the permission assignments for the specified Databricks account and Databricks workspace.
createorupdateinsertCreates or updates the workspace permissions assignment in a given account and workspace for the specified principal.
deletedeleteDeletes the workspace permissions assignment in a given account and workspace for the specified principal.

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

SELECT examples

Get the permission assignments for the specified Databricks account and Databricks workspace.

SELECT
error,
permissions,
principal
FROM databricks_account.iam.workspace_permission_assignments;

INSERT examples

Creates or updates the workspace permissions assignment in a given account and workspace for the specified principal.

INSERT INTO databricks_account.iam.workspace_permission_assignments (
data__permissions
)
SELECT
'{{ permissions }}'
RETURNING
error,
permissions,
principal
;

DELETE examples

Deletes the workspace permissions assignment in a given account and workspace for the specified principal.

DELETE FROM databricks_account.iam.workspace_permission_assignments;