Skip to main content

share_permissions

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

Overview

Nameshare_permissions
TypeResource
Iddatabricks_workspace.deltasharing.share_permissions

Fields

The following fields are returned by SELECT queries:

The share permissions list was successfully retrieved.

NameDatatypeDescription
principalstring
privilegesarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
sharepermissionsselectdeployment_nameGets the permissions for a data share from the metastore. The caller must be a metastore admin or the owner of the share.
updatepermissionsupdatedeployment_nameUpdates the permissions for a data share in the metastore. The caller must be a metastore admin or an owner of the share.

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 permissions for a data share from the metastore. The caller must be a metastore admin or the owner of the share.

SELECT
principal,
privileges
FROM databricks_workspace.deltasharing.share_permissions
WHERE deployment_name = '{{ deployment_name }}' -- required;

UPDATE examples

Updates the permissions for a data share in the metastore. The caller must be a metastore admin or an owner of the share.

UPDATE databricks_workspace.deltasharing.share_permissions
SET
data__changes = '{{ changes }}'
WHERE
deployment_name = '{{ deployment_name }}' --required;