Skip to main content

permissions

Operations on a permissions resource.

Overview

Namepermissions
TypeResource
Iddatabricks_workspace.workspace.permissions

Fields

NameDatatype
etagstring
namespaceobject
setting_namestring

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeployment_nameGets the default namespace setting.
deleteDELETEdeployment_nameDeletes the default namespace setting for the workspace. A fresh etag needs to be provided in
updateUPDATEdeployment_nameUpdates the default namespace setting for the workspace. A fresh etag needs to be provided in

SELECT examples

SELECT
etag,
namespace,
setting_name
FROM databricks_workspace.workspace.permissions
WHERE 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.workspace.permissions
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE deployment_name = '{{ deployment_name }}';

DELETE example

Deletes a permissions resource.

/*+ delete */
DELETE FROM databricks_workspace.workspace.permissions
WHERE deployment_name = '{{ deployment_name }}';