Policy
PolicyInfo object
- idstringOutput only
Unique identifier of the policy. This field is output only and is generated by the system.
- on_securable_typestring
Type of the securable on which the policy is defined. Only
CATALOG,SCHEMAandTABLEare supported at this moment. Required on create.Show 24 possible values
CATALOGSCHEMATABLESTORAGE_CREDENTIALEXTERNAL_LOCATIONFUNCTIONSHAREPROVIDERRECIPIENTCLEAN_ROOMMETASTOREPIPELINEVOLUMECONNECTIONCREDENTIALEXTERNAL_METADATASTAGING_TABLEMODELMODEL_SERVICEMCP_SERVICEMODEL_PROVIDER_SERVICEAGENT_SERVICEBetaSKILLBetaFEATURE
- on_securable_fullnamestring
Full name of the securable on which the policy is defined. Required on create.
- namestring
Name of the policy. Required on create and optional on update. To rename the policy, set
nameto a different value on update.
- commentstring
Optional description of the policy.
- to_principalsarray of string
List of user or group names that the policy applies to. Required on create and optional on update.
- except_principalsarray of string
Optional list of user or group names that should be excluded from the policy.
- for_securable_typestring
Type of securables that the policy should take effect on. Required on create and optional on update.
Show 24 possible values
CATALOGSCHEMATABLESTORAGE_CREDENTIALEXTERNAL_LOCATIONFUNCTIONSHAREPROVIDERRECIPIENTCLEAN_ROOMMETASTOREPIPELINEVOLUMECONNECTIONCREDENTIALEXTERNAL_METADATASTAGING_TABLEMODELMODEL_SERVICEMCP_SERVICEMODEL_PROVIDER_SERVICEAGENT_SERVICEBetaSKILLBetaFEATURE
- when_conditionstring
Optional condition when the policy should take effect.
- policy_typestring
Type of the policy. Required on create.
POLICY_TYPE_ROW_FILTERPOLICY_TYPE_COLUMN_MASKPOLICY_TYPE_DENYPOLICY_TYPE_GRANTPOLICY_TYPE_SERVICEBeta
- row_filterobject
Options for row filter policies. Valid only if
policy_typeisPOLICY_TYPE_ROW_FILTER. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- function_namestring
The fully qualified name of the row filter function. The function is called on each row of the target table. It should return a boolean value indicating whether the row should be visible to the user. Required on create and update.
- usingarray of object
Optional list of column aliases or constant literals to be passed as arguments to the row filter function. The type of each column should match the positional argument of the row filter function.
Show child attributesHide child attributes
- aliasstring
The alias of a matched column.
- constantstring
A constant literal.
- function_arg_expressionobject
An expression evaluated at query time. Wraps per-request expression variants (e.g., tag introspection) so new variants can be added without extending the FunctionArgument oneof.
Show child attributesHide child attributes
- tag_introspectionobject
An expression that introspects tags at query time.
Show child attributesHide child attributes
- tag_valueobject
Extracts the value of a securable-level tag.
Show child attributesHide child attributes
- tag_keystring
1024 matches the max_length on FunctionArgument.constant above.
- column_tag_valueobject
Extracts the value of a column-level tag.
Show child attributesHide child attributes
- column_aliasstring
The alias from MATCH COLUMNS that identifies the column.
- tag_keystring
1024 matches the max_length on FunctionArgument.constant above.
- column_maskobject
Options for column mask policies. Valid only if
policy_typeisPOLICY_TYPE_COLUMN_MASK. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- function_namestring
The fully qualified name of the column mask function. The function is called on each row of the target table. The function's first argument and its return type should match the type of the masked column. Required on create and update.
- on_columnstring
The alias of the column to be masked. The alias must refer to one of matched columns. The values of the column is passed to the column mask function as the first argument. Required on create and update.
- usingarray of object
Optional list of column aliases or constant literals to be passed as additional arguments to the column mask function. The type of each column should match the positional argument of the column mask function.
Show child attributesHide child attributes
- aliasstring
The alias of a matched column.
- constantstring
A constant literal.
- function_arg_expressionobject
An expression evaluated at query time. Wraps per-request expression variants (e.g., tag introspection) so new variants can be added without extending the FunctionArgument oneof.
Show child attributesHide child attributes
- tag_introspectionobject
An expression that introspects tags at query time.
Show child attributesHide child attributes
- tag_valueobject
Extracts the value of a securable-level tag.
Show child attributesHide child attributes
- tag_keystring
1024 matches the max_length on FunctionArgument.constant above.
- column_tag_valueobject
Extracts the value of a column-level tag.
Show child attributesHide child attributes
- column_aliasstring
The alias from MATCH COLUMNS that identifies the column.
- tag_keystring
1024 matches the max_length on FunctionArgument.constant above.
- denyobject
Options for deny policies. Valid only if
policy_typeisPOLICY_TYPE_DENY. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- privilegesarray of string
List of privileges to deny. When any of these privileges are requested, the policy will deny access if the principal and condition match. Required on create and update.
- grantobject
Options for grant policies. Valid only if
policy_typeisPOLICY_TYPE_GRANT. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- privilegesarray of string
List of privileges to grant. When any of these privileges are requested, the policy will grant access if the principal and condition match. Required on create and update.
- serviceobjectBeta
Options for service policies. Valid only if
policy_typeisPOLICY_TYPE_SERVICE. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- builtinobjectBeta
A Databricks-provided policy.
Show child attributesHide child attributes
- llm_judgeobjectBeta
A Databricks-provided LLM judge.
Show child attributesHide child attributes
- guardrailstringBeta
Databricks-provided guardrail to run.
UNSAFE_CONTENTJAILBREAKHALLUCINATION
- model_service_namestringBeta
Resource name of the model service that evaluates the request or response, in the form
model-services/{catalog}.{schema}.{model_service}.
- is_deletedbooleanBetaOutput only
Whether the referenced model service has been deleted or can no longer be found. If its name can no longer be determined,
model_service_nameis empty.
- sensitive_dataobjectBeta
Deterministic sensitive-data detection.
Show child attributesHide child attributes
- classifiersarray of objectBeta
One to 15 data classifiers to apply. Classifier names must be unique. A PATCH request that selects only
service.builtin.sensitive_data.actionin the update mask can omit this field. The policy keeps its stored classifiers.Show child attributesHide child attributes
- classifier_namestringBeta
Resource name of a built-in data classifier, in the form
classifiers/system.data_classification.{classifier}, such asclassifiers/system.data_classification.us_ssn. The classifier name must be lowercase.
- actionstringBeta
Action taken when a selected data category is detected: BLOCK, MASK, or ASK. ASK is supported only for MCP services and only in the PRE_CALL phase.
BLOCKASKMASK
- customobjectBeta
A user-defined policy, such as a Unity Catalog function or an LLM judge with your prompt.
Show child attributesHide child attributes
- llm_judgeobjectBeta
A Unity Catalog model service that evaluates requests or responses against your prompt.
Show child attributesHide child attributes
- model_service_namestringBeta
Resource name of the model service that evaluates the request or response, in the form
model-services/{catalog}.{schema}.{model_service}.
- promptstringBeta
Policy prompt evaluated by the LLM judge. Must not exceed 8 KiB.
- actionstringBeta
Action taken when the judge detects a violation: BLOCK or ASK. ASK is supported only for MCP services and only in the PRE_CALL phase.
BLOCKASKMASK
- is_deletedbooleanBetaOutput only
Whether the referenced model service has been deleted or can no longer be found. If its name can no longer be determined,
model_service_nameis empty.
- sql_functionobjectBeta
A SQL Unity Catalog function.
Show child attributesHide child attributes
- function_namestringBeta
Resource name of the existing Unity Catalog function, in the form
functions/{catalog}.{schema}.{function}. The function must take one VARIANT parameter (event) or two (event,config) and return VARIANT or STRUCT.
- is_deletedbooleanBetaOutput only
Whether the referenced function has been deleted or can no longer be found. If its name can no longer be determined,
function_nameis empty.
- python_functionobjectBeta
A Python Unity Catalog function.
Show child attributesHide child attributes
- function_namestringBeta
Resource name of the existing Python Unity Catalog function, in the form
functions/{catalog}.{schema}.{function}.
- is_deletedbooleanBetaOutput only
Whether the referenced function has been deleted or can no longer be found. If its name can no longer be determined,
function_nameis empty.
- configobjectBeta
Configuration supplied to the Python function as its
configargument. Up to 32 entries with keys of up to 256 characters; the serialized configuration must not exceed 8 KiB.
- externalobjectBeta
A policy evaluated by a partner or another external provider.
Show child attributesHide child attributes
- connection_namestringBeta
Resource name of the Unity Catalog connection used to call the external provider, in the form
connections/{catalog}.{schema}.{connection}.
- policy_configstringBeta
Provider-specific configuration supplied on every evaluation, as a JSON object.
- pathstringBeta
Subpath appended to the connection's base URL. If unset,
/is used.
- timeoutstringBeta
Maximum external evaluation time, from 1ms to 10s. If unset, 5 seconds is used.
- is_deletedbooleanBetaOutput only
Whether the referenced connection has been deleted or can no longer be found. If its name can no longer be determined,
connection_nameis empty.
- rankint32Beta
Order in which policies that apply to the same invocation run, from 1 to 100. Lower ranks run first on the request and last on the response. If unset, the policy runs after all ranked policies on the request and before them on the response.
- phasesarray of stringBeta
Invocation phases in which the policy runs. SQL and Python function policies must specify both PRE_CALL and POST_CALL; the function distinguishes them with
event.type.PRE_CALLPOST_CALL
- modestringBeta
Whether policy outcomes are enforced or only recorded.
ENFORCELOG
- conversation_windowobjectBeta
Conversation history supplied to the policy evaluator. Supported only for policies on model services and model provider services, and requires the PRE_CALL phase unless the policy is external. Not supported for sensitive-data or HALLUCINATION policies. If unset, the entire conversation is supplied.
Show child attributesHide child attributes
- max_turnsint32Beta
Maximum number of recent conversation turns made available to the evaluator, from 1 to 100. Unset means the entire conversation.
- stream_modestringBeta
How POST_CALL policies are evaluated on streamed responses. If unset, responses use full response evaluation (FULLY_BUFFERED) and do not stream. Applies when the policy and request support streaming evaluation. Not supported for policies on MCP services.
WINDOWED_SYNCFULLY_BUFFERED
- match_columnsarray of object
Optional list of condition expressions used to match table columns. Only valid when
for_securable_typeisTABLE. When specified, the policy only applies to tables whose columns satisfy all match conditions.Show child attributesHide child attributes
- conditionstring
The condition expression used to match a table column.
- aliasstring
Optional alias of the matched column.
- created_atint64Output only
Time at which the policy was created, in epoch milliseconds. Output only.
- created_bystringOutput only
Username of the user who created the policy. Output only.
- updated_atint64Output only
Time at which the policy was last modified, in epoch milliseconds. Output only.
- updated_bystringOutput only
Username of the user who last modified the policy. Output only.
- governed_tagsarray of objectOutput only
Governed tag keys and values referenced by this policy's conditions and function arguments. Output only.
Show child attributesHide child attributes
- tag_keystring
The governed tag key.
- tag_valuestring
The governed tag value, when the policy references a specific value.
Get an ABAC policy GA
GET
Get the policy definition on a securable
API scopes: unity-catalog
Parameters
- on_securable_typestringRequiredpath
Required. The type of the securable to retrieve the policy for.
- on_securable_fullnamestringRequiredpath
Required. The fully qualified name of securable to retrieve policy for.
- namestringRequiredpath
Required. The name of the policy to retrieve.
Response
Returns the PolicyInfo object.
List ABAC policies GA
GET
List all policies defined on a securable. Optionally, the list can include inherited policies defined on the securable's parent schema or catalog.
PAGINATION BEHAVIOR: The API is by default paginated, a page may contain zero results while still providing a next_page_token. Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
API scopes: unity-catalog
Parameters
- on_securable_typestringRequiredpath
Required. The type of the securable to list policies for.
- on_securable_fullnamestringRequiredpath
Required. The fully qualified name of securable to list policies for.
- include_inheritedbooleanquery
Optional. Whether to include policies defined on parent securables. By default, the inherited policies are not included.
- max_resultsint32query
Optional. Maximum number of policies to return on a single page (page length).
- When not set or set to 0, the page length is set to a server configured value (recommended);
- When set to a value greater than 0, the page length is the minimum of this value and a server configured value;
- page_tokenstringquery
Optional. Opaque pagination token to go to next page based on previous query.
Response
Returns a list of PolicyInfo objects.
Create an ABAC policy GA
POST
Creates a new policy on a securable. The new policy applies to the securable and all its descendants.
API scopes: unity-catalog
Request body
Required. The policy to create.
- on_securable_typestring
Type of the securable on which the policy is defined. Only
CATALOG,SCHEMAandTABLEare supported at this moment. Required on create.Show 24 possible values
CATALOGSCHEMATABLESTORAGE_CREDENTIALEXTERNAL_LOCATIONFUNCTIONSHAREPROVIDERRECIPIENTCLEAN_ROOMMETASTOREPIPELINEVOLUMECONNECTIONCREDENTIALEXTERNAL_METADATASTAGING_TABLEMODELMODEL_SERVICEMCP_SERVICEMODEL_PROVIDER_SERVICEAGENT_SERVICEBetaSKILLBetaFEATURE
- on_securable_fullnamestring
Full name of the securable on which the policy is defined. Required on create.
- namestring
Name of the policy. Required on create and optional on update. To rename the policy, set
nameto a different value on update.
- commentstring
Optional description of the policy.
- to_principalsarray of stringRequired
List of user or group names that the policy applies to. Required on create and optional on update.
- except_principalsarray of string
Optional list of user or group names that should be excluded from the policy.
- for_securable_typestringRequired
Type of securables that the policy should take effect on. Required on create and optional on update.
Show 24 possible values
CATALOGSCHEMATABLESTORAGE_CREDENTIALEXTERNAL_LOCATIONFUNCTIONSHAREPROVIDERRECIPIENTCLEAN_ROOMMETASTOREPIPELINEVOLUMECONNECTIONCREDENTIALEXTERNAL_METADATASTAGING_TABLEMODELMODEL_SERVICEMCP_SERVICEMODEL_PROVIDER_SERVICEAGENT_SERVICEBetaSKILLBetaFEATURE
- when_conditionstring
Optional condition when the policy should take effect.
- policy_typestringRequired
Type of the policy. Required on create.
POLICY_TYPE_ROW_FILTERPOLICY_TYPE_COLUMN_MASKPOLICY_TYPE_DENYPOLICY_TYPE_GRANTPOLICY_TYPE_SERVICEBeta
- row_filterobject
Options for row filter policies. Valid only if
policy_typeisPOLICY_TYPE_ROW_FILTER. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- function_namestringRequired
The fully qualified name of the row filter function. The function is called on each row of the target table. It should return a boolean value indicating whether the row should be visible to the user. Required on create and update.
- usingarray of object
Optional list of column aliases or constant literals to be passed as arguments to the row filter function. The type of each column should match the positional argument of the row filter function.
Show child attributesHide child attributes
- aliasstring
The alias of a matched column.
- constantstring
A constant literal.
- function_arg_expressionobject
An expression evaluated at query time. Wraps per-request expression variants (e.g., tag introspection) so new variants can be added without extending the FunctionArgument oneof.
Show child attributesHide child attributes
- tag_introspectionobject
An expression that introspects tags at query time.
Show child attributesHide child attributes
- tag_valueobject
Extracts the value of a securable-level tag.
Show child attributesHide child attributes
- tag_keystringRequired
1024 matches the max_length on FunctionArgument.constant above.
- column_tag_valueobject
Extracts the value of a column-level tag.
Show child attributesHide child attributes
- column_aliasstringRequired
The alias from MATCH COLUMNS that identifies the column.
- tag_keystringRequired
1024 matches the max_length on FunctionArgument.constant above.
- column_maskobject
Options for column mask policies. Valid only if
policy_typeisPOLICY_TYPE_COLUMN_MASK. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- function_namestringRequired
The fully qualified name of the column mask function. The function is called on each row of the target table. The function's first argument and its return type should match the type of the masked column. Required on create and update.
- on_columnstringRequired
The alias of the column to be masked. The alias must refer to one of matched columns. The values of the column is passed to the column mask function as the first argument. Required on create and update.
- usingarray of object
Optional list of column aliases or constant literals to be passed as additional arguments to the column mask function. The type of each column should match the positional argument of the column mask function.
Show child attributesHide child attributes
- aliasstring
The alias of a matched column.
- constantstring
A constant literal.
- function_arg_expressionobject
An expression evaluated at query time. Wraps per-request expression variants (e.g., tag introspection) so new variants can be added without extending the FunctionArgument oneof.
Show child attributesHide child attributes
- tag_introspectionobject
An expression that introspects tags at query time.
Show child attributesHide child attributes
- tag_valueobject
Extracts the value of a securable-level tag.
Show child attributesHide child attributes
- tag_keystringRequired
1024 matches the max_length on FunctionArgument.constant above.
- column_tag_valueobject
Extracts the value of a column-level tag.
Show child attributesHide child attributes
- column_aliasstringRequired
The alias from MATCH COLUMNS that identifies the column.
- tag_keystringRequired
1024 matches the max_length on FunctionArgument.constant above.
- denyobject
Options for deny policies. Valid only if
policy_typeisPOLICY_TYPE_DENY. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- privilegesarray of stringRequired
List of privileges to deny. When any of these privileges are requested, the policy will deny access if the principal and condition match. Required on create and update.
- grantobject
Options for grant policies. Valid only if
policy_typeisPOLICY_TYPE_GRANT. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- privilegesarray of stringRequired
List of privileges to grant. When any of these privileges are requested, the policy will grant access if the principal and condition match. Required on create and update.
- serviceobjectBeta
Options for service policies. Valid only if
policy_typeisPOLICY_TYPE_SERVICE. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- builtinobjectBeta
A Databricks-provided policy.
Show child attributesHide child attributes
- llm_judgeobjectBeta
A Databricks-provided LLM judge.
Show child attributesHide child attributes
- guardrailstringRequiredBeta
Databricks-provided guardrail to run.
UNSAFE_CONTENTJAILBREAKHALLUCINATION
- model_service_namestringRequiredBeta
Resource name of the model service that evaluates the request or response, in the form
model-services/{catalog}.{schema}.{model_service}.
- sensitive_dataobjectBeta
Deterministic sensitive-data detection.
Show child attributesHide child attributes
- classifiersarray of objectRequiredBeta
One to 15 data classifiers to apply. Classifier names must be unique. A PATCH request that selects only
service.builtin.sensitive_data.actionin the update mask can omit this field. The policy keeps its stored classifiers.Show child attributesHide child attributes
- classifier_namestringRequiredBeta
Resource name of a built-in data classifier, in the form
classifiers/system.data_classification.{classifier}, such asclassifiers/system.data_classification.us_ssn. The classifier name must be lowercase.
- actionstringRequiredBeta
Action taken when a selected data category is detected: BLOCK, MASK, or ASK. ASK is supported only for MCP services and only in the PRE_CALL phase.
BLOCKASKMASK
- customobjectBeta
A user-defined policy, such as a Unity Catalog function or an LLM judge with your prompt.
Show child attributesHide child attributes
- llm_judgeobjectBeta
A Unity Catalog model service that evaluates requests or responses against your prompt.
Show child attributesHide child attributes
- model_service_namestringRequiredBeta
Resource name of the model service that evaluates the request or response, in the form
model-services/{catalog}.{schema}.{model_service}.
- promptstringRequiredBeta
Policy prompt evaluated by the LLM judge. Must not exceed 8 KiB.
- actionstringRequiredBeta
Action taken when the judge detects a violation: BLOCK or ASK. ASK is supported only for MCP services and only in the PRE_CALL phase.
BLOCKASKMASK
- sql_functionobjectBeta
A SQL Unity Catalog function.
Show child attributesHide child attributes
- function_namestringRequiredBeta
Resource name of the existing Unity Catalog function, in the form
functions/{catalog}.{schema}.{function}. The function must take one VARIANT parameter (event) or two (event,config) and return VARIANT or STRUCT.
- python_functionobjectBeta
A Python Unity Catalog function.
Show child attributesHide child attributes
- function_namestringRequiredBeta
Resource name of the existing Python Unity Catalog function, in the form
functions/{catalog}.{schema}.{function}.
- configobjectBeta
Configuration supplied to the Python function as its
configargument. Up to 32 entries with keys of up to 256 characters; the serialized configuration must not exceed 8 KiB.
- externalobjectBeta
A policy evaluated by a partner or another external provider.
Show child attributesHide child attributes
- connection_namestringRequiredBeta
Resource name of the Unity Catalog connection used to call the external provider, in the form
connections/{catalog}.{schema}.{connection}.
- policy_configstringBeta
Provider-specific configuration supplied on every evaluation, as a JSON object.
- pathstringBeta
Subpath appended to the connection's base URL. If unset,
/is used.
- timeoutstringBeta
Maximum external evaluation time, from 1ms to 10s. If unset, 5 seconds is used.
- rankint32Beta
Order in which policies that apply to the same invocation run, from 1 to 100. Lower ranks run first on the request and last on the response. If unset, the policy runs after all ranked policies on the request and before them on the response.
- phasesarray of stringRequiredBeta
Invocation phases in which the policy runs. SQL and Python function policies must specify both PRE_CALL and POST_CALL; the function distinguishes them with
event.type.PRE_CALLPOST_CALL
- modestringRequiredBeta
Whether policy outcomes are enforced or only recorded.
ENFORCELOG
- conversation_windowobjectBeta
Conversation history supplied to the policy evaluator. Supported only for policies on model services and model provider services, and requires the PRE_CALL phase unless the policy is external. Not supported for sensitive-data or HALLUCINATION policies. If unset, the entire conversation is supplied.
Show child attributesHide child attributes
- max_turnsint32Beta
Maximum number of recent conversation turns made available to the evaluator, from 1 to 100. Unset means the entire conversation.
- stream_modestringBeta
How POST_CALL policies are evaluated on streamed responses. If unset, responses use full response evaluation (FULLY_BUFFERED) and do not stream. Applies when the policy and request support streaming evaluation. Not supported for policies on MCP services.
WINDOWED_SYNCFULLY_BUFFERED
- match_columnsarray of object
Optional list of condition expressions used to match table columns. Only valid when
for_securable_typeisTABLE. When specified, the policy only applies to tables whose columns satisfy all match conditions.Show child attributesHide child attributes
- conditionstring
The condition expression used to match a table column.
- aliasstring
Optional alias of the matched column.
Response
Returns the PolicyInfo object.
Update an ABAC policy GA
PATCH
Update an ABAC policy on a securable.
API scopes: unity-catalog
Parameters
- on_securable_typestringRequiredpath
Required. The type of the securable to update the policy for.
- on_securable_fullnamestringRequiredpath
Required. The fully qualified name of the securable to update the policy for.
- namestringRequiredpath
Required. The name of the policy to update.
- update_maskstringquery
Optional. The update mask field for specifying user intentions on which fields to update in the request.
Request body
Optional fields to update. This is the request body for updating a policy.
Use update_mask field to specify which fields in the request is to be updated.
- If
update_maskis empty or "*", all specified fields will be updated. - If
update_maskis specified, only the fields specified in theupdate_maskwill be updated. If a field is specified inupdate_maskand not set in the request, the field will be cleared. Users can use the update mask to explicitly unset optional fields such asexception_principalsandwhen_condition.
- on_securable_typestring
Type of the securable on which the policy is defined. Only
CATALOG,SCHEMAandTABLEare supported at this moment. Required on create.Show 24 possible values
CATALOGSCHEMATABLESTORAGE_CREDENTIALEXTERNAL_LOCATIONFUNCTIONSHAREPROVIDERRECIPIENTCLEAN_ROOMMETASTOREPIPELINEVOLUMECONNECTIONCREDENTIALEXTERNAL_METADATASTAGING_TABLEMODELMODEL_SERVICEMCP_SERVICEMODEL_PROVIDER_SERVICEAGENT_SERVICEBetaSKILLBetaFEATURE
- on_securable_fullnamestring
Full name of the securable on which the policy is defined. Required on create.
- namestring
Name of the policy. Required on create and optional on update. To rename the policy, set
nameto a different value on update.
- commentstring
Optional description of the policy.
- to_principalsarray of stringRequired
List of user or group names that the policy applies to. Required on create and optional on update.
- except_principalsarray of string
Optional list of user or group names that should be excluded from the policy.
- for_securable_typestringRequired
Type of securables that the policy should take effect on. Required on create and optional on update.
Show 24 possible values
CATALOGSCHEMATABLESTORAGE_CREDENTIALEXTERNAL_LOCATIONFUNCTIONSHAREPROVIDERRECIPIENTCLEAN_ROOMMETASTOREPIPELINEVOLUMECONNECTIONCREDENTIALEXTERNAL_METADATASTAGING_TABLEMODELMODEL_SERVICEMCP_SERVICEMODEL_PROVIDER_SERVICEAGENT_SERVICEBetaSKILLBetaFEATURE
- when_conditionstring
Optional condition when the policy should take effect.
- policy_typestringRequired
Type of the policy. Required on create.
POLICY_TYPE_ROW_FILTERPOLICY_TYPE_COLUMN_MASKPOLICY_TYPE_DENYPOLICY_TYPE_GRANTPOLICY_TYPE_SERVICEBeta
- row_filterobject
Options for row filter policies. Valid only if
policy_typeisPOLICY_TYPE_ROW_FILTER. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- function_namestringRequired
The fully qualified name of the row filter function. The function is called on each row of the target table. It should return a boolean value indicating whether the row should be visible to the user. Required on create and update.
- usingarray of object
Optional list of column aliases or constant literals to be passed as arguments to the row filter function. The type of each column should match the positional argument of the row filter function.
Show child attributesHide child attributes
- aliasstring
The alias of a matched column.
- constantstring
A constant literal.
- function_arg_expressionobject
An expression evaluated at query time. Wraps per-request expression variants (e.g., tag introspection) so new variants can be added without extending the FunctionArgument oneof.
Show child attributesHide child attributes
- tag_introspectionobject
An expression that introspects tags at query time.
Show child attributesHide child attributes
- tag_valueobject
Extracts the value of a securable-level tag.
Show child attributesHide child attributes
- tag_keystringRequired
1024 matches the max_length on FunctionArgument.constant above.
- column_tag_valueobject
Extracts the value of a column-level tag.
Show child attributesHide child attributes
- column_aliasstringRequired
The alias from MATCH COLUMNS that identifies the column.
- tag_keystringRequired
1024 matches the max_length on FunctionArgument.constant above.
- column_maskobject
Options for column mask policies. Valid only if
policy_typeisPOLICY_TYPE_COLUMN_MASK. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- function_namestringRequired
The fully qualified name of the column mask function. The function is called on each row of the target table. The function's first argument and its return type should match the type of the masked column. Required on create and update.
- on_columnstringRequired
The alias of the column to be masked. The alias must refer to one of matched columns. The values of the column is passed to the column mask function as the first argument. Required on create and update.
- usingarray of object
Optional list of column aliases or constant literals to be passed as additional arguments to the column mask function. The type of each column should match the positional argument of the column mask function.
Show child attributesHide child attributes
- aliasstring
The alias of a matched column.
- constantstring
A constant literal.
- function_arg_expressionobject
An expression evaluated at query time. Wraps per-request expression variants (e.g., tag introspection) so new variants can be added without extending the FunctionArgument oneof.
Show child attributesHide child attributes
- tag_introspectionobject
An expression that introspects tags at query time.
Show child attributesHide child attributes
- tag_valueobject
Extracts the value of a securable-level tag.
Show child attributesHide child attributes
- tag_keystringRequired
1024 matches the max_length on FunctionArgument.constant above.
- column_tag_valueobject
Extracts the value of a column-level tag.
Show child attributesHide child attributes
- column_aliasstringRequired
The alias from MATCH COLUMNS that identifies the column.
- tag_keystringRequired
1024 matches the max_length on FunctionArgument.constant above.
- denyobject
Options for deny policies. Valid only if
policy_typeisPOLICY_TYPE_DENY. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- privilegesarray of stringRequired
List of privileges to deny. When any of these privileges are requested, the policy will deny access if the principal and condition match. Required on create and update.
- grantobject
Options for grant policies. Valid only if
policy_typeisPOLICY_TYPE_GRANT. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- privilegesarray of stringRequired
List of privileges to grant. When any of these privileges are requested, the policy will grant access if the principal and condition match. Required on create and update.
- serviceobjectBeta
Options for service policies. Valid only if
policy_typeisPOLICY_TYPE_SERVICE. Required on create and optional on update. When specified on update, the new options will replace the existing options as a whole.Show child attributesHide child attributes
- builtinobjectBeta
A Databricks-provided policy.
Show child attributesHide child attributes
- llm_judgeobjectBeta
A Databricks-provided LLM judge.
Show child attributesHide child attributes
- guardrailstringRequiredBeta
Databricks-provided guardrail to run.
UNSAFE_CONTENTJAILBREAKHALLUCINATION
- model_service_namestringRequiredBeta
Resource name of the model service that evaluates the request or response, in the form
model-services/{catalog}.{schema}.{model_service}.
- sensitive_dataobjectBeta
Deterministic sensitive-data detection.
Show child attributesHide child attributes
- classifiersarray of objectRequiredBeta
One to 15 data classifiers to apply. Classifier names must be unique. A PATCH request that selects only
service.builtin.sensitive_data.actionin the update mask can omit this field. The policy keeps its stored classifiers.Show child attributesHide child attributes
- classifier_namestringRequiredBeta
Resource name of a built-in data classifier, in the form
classifiers/system.data_classification.{classifier}, such asclassifiers/system.data_classification.us_ssn. The classifier name must be lowercase.
- actionstringRequiredBeta
Action taken when a selected data category is detected: BLOCK, MASK, or ASK. ASK is supported only for MCP services and only in the PRE_CALL phase.
BLOCKASKMASK
- customobjectBeta
A user-defined policy, such as a Unity Catalog function or an LLM judge with your prompt.
Show child attributesHide child attributes
- llm_judgeobjectBeta
A Unity Catalog model service that evaluates requests or responses against your prompt.
Show child attributesHide child attributes
- model_service_namestringRequiredBeta
Resource name of the model service that evaluates the request or response, in the form
model-services/{catalog}.{schema}.{model_service}.
- promptstringRequiredBeta
Policy prompt evaluated by the LLM judge. Must not exceed 8 KiB.
- actionstringRequiredBeta
Action taken when the judge detects a violation: BLOCK or ASK. ASK is supported only for MCP services and only in the PRE_CALL phase.
BLOCKASKMASK
- sql_functionobjectBeta
A SQL Unity Catalog function.
Show child attributesHide child attributes
- function_namestringRequiredBeta
Resource name of the existing Unity Catalog function, in the form
functions/{catalog}.{schema}.{function}. The function must take one VARIANT parameter (event) or two (event,config) and return VARIANT or STRUCT.
- python_functionobjectBeta
A Python Unity Catalog function.
Show child attributesHide child attributes
- function_namestringRequiredBeta
Resource name of the existing Python Unity Catalog function, in the form
functions/{catalog}.{schema}.{function}.
- configobjectBeta
Configuration supplied to the Python function as its
configargument. Up to 32 entries with keys of up to 256 characters; the serialized configuration must not exceed 8 KiB.
- externalobjectBeta
A policy evaluated by a partner or another external provider.
Show child attributesHide child attributes
- connection_namestringRequiredBeta
Resource name of the Unity Catalog connection used to call the external provider, in the form
connections/{catalog}.{schema}.{connection}.
- policy_configstringBeta
Provider-specific configuration supplied on every evaluation, as a JSON object.
- pathstringBeta
Subpath appended to the connection's base URL. If unset,
/is used.
- timeoutstringBeta
Maximum external evaluation time, from 1ms to 10s. If unset, 5 seconds is used.
- rankint32Beta
Order in which policies that apply to the same invocation run, from 1 to 100. Lower ranks run first on the request and last on the response. If unset, the policy runs after all ranked policies on the request and before them on the response.
- phasesarray of stringRequiredBeta
Invocation phases in which the policy runs. SQL and Python function policies must specify both PRE_CALL and POST_CALL; the function distinguishes them with
event.type.PRE_CALLPOST_CALL
- modestringRequiredBeta
Whether policy outcomes are enforced or only recorded.
ENFORCELOG
- conversation_windowobjectBeta
Conversation history supplied to the policy evaluator. Supported only for policies on model services and model provider services, and requires the PRE_CALL phase unless the policy is external. Not supported for sensitive-data or HALLUCINATION policies. If unset, the entire conversation is supplied.
Show child attributesHide child attributes
- max_turnsint32Beta
Maximum number of recent conversation turns made available to the evaluator, from 1 to 100. Unset means the entire conversation.
- stream_modestringBeta
How POST_CALL policies are evaluated on streamed responses. If unset, responses use full response evaluation (FULLY_BUFFERED) and do not stream. Applies when the policy and request support streaming evaluation. Not supported for policies on MCP services.
WINDOWED_SYNCFULLY_BUFFERED
- match_columnsarray of object
Optional list of condition expressions used to match table columns. Only valid when
for_securable_typeisTABLE. When specified, the policy only applies to tables whose columns satisfy all match conditions.Show child attributesHide child attributes
- conditionstring
The condition expression used to match a table column.
- aliasstring
Optional alias of the matched column.
Response
Returns the PolicyInfo object.
Delete an ABAC policy GA
DELETE
Delete an ABAC policy defined on a securable.
API scopes: unity-catalog
Parameters
- on_securable_typestringRequiredpath
Required. The type of the securable to delete the policy from.
- on_securable_fullnamestringRequiredpath
Required. The fully qualified name of the securable to delete the policy from.
- namestringRequiredpath
Required. The name of the policy to delete