Skip to main content

permissions

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

Overview

Namepermissions
TypeResource
Iddatabricks_workspace.workspace.permissions

Fields

The following fields are returned by SELECT queries:

Request completed successfully.

NameDatatypeDescription
setting_namestring
etagstring
namespaceobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeployment_nameGets the default namespace setting.
updateupdatedeployment_nameUpdates the default namespace setting for the workspace. A fresh etag needs to be provided in
deletedeletedeployment_nameDeletes the default namespace setting for the workspace. A fresh etag needs to be provided in

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 the default namespace setting.

SELECT
setting_name,
etag,
namespace
FROM databricks_workspace.workspace.permissions
WHERE deployment_name = '{{ deployment_name }}' -- required;

UPDATE examples

Updates the default namespace setting for the workspace. A fresh etag needs to be provided in

UPDATE databricks_workspace.workspace.permissions
SET
data__allow_missing = '{{ allow_missing }}',
data__field_mask = {{ field_mask }},
data__setting = '{{ setting }}'
WHERE
deployment_name = '{{ deployment_name }}' --required
RETURNING
setting_name,
etag,
namespace;

DELETE examples

Deletes the default namespace setting for the workspace. A fresh etag needs to be provided in

DELETE FROM databricks_workspace.workspace.permissions
WHERE deployment_name = '{{ deployment_name }}' --required;