grants
Operations on a grants
resource.
Overview
Name | grants |
Type | Resource |
Id | databricks_workspace.unitycatalog.grants |
Fields
Name | Datatype |
---|---|
principal | string |
privileges | array |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | full_name, securable_type, deployment_name | Gets the permissions for a securable. |
update | UPDATE | full_name, securable_type, deployment_name | Updates the permissions for a securable. |
SELECT
examples
SELECT
principal,
privileges
FROM databricks_workspace.unitycatalog.grants
WHERE full_name = '{{ full_name }}' AND
securable_type = '{{ securable_type }}' AND
deployment_name = '{{ deployment_name }}';
UPDATE
example
Updates a grants
resource.
/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.unitycatalog.grants
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE full_name = '{{ full_name }}' AND
securable_type = '{{ securable_type }}' AND
deployment_name = '{{ deployment_name }}';