---
title: ABAC_POLICY_DEFINITIONS
description: Learn about the INFORMATION\_SCHEMA.ABAC\_POLICY\_DEFINITIONS relation in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/gcp/en/sql/language-manual/information-schema/abac_policy_definitions
---

# ABAC\_POLICY\_DEFINITIONS

**Applies to:** ![check marked yes](https://docs.databricks.com/gcp/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/gcp/en/images/icons/check.png) Databricks Runtime ![check marked yes](https://docs.databricks.com/gcp/en/images/icons/check.png) Unity Catalog only

> [!NOTE]
> **Preview**
>
> This feature is in [Public Preview](https://docs.databricks.com/gcp/en/release-notes/release-types.md).

`INFORMATION_SCHEMA.ABAC_POLICY_DEFINITIONS` returns one row for each [ABAC](https://docs.databricks.com/gcp/en/data-governance/unity-catalog/abac/index.md) policy attached to a securable object. Each row describes the policy definition, including its attachment scope, policy type, included and exempt principals, and the condition used to enforce the policy.

To list metastore-level policies (Beta), along with every ABAC policy across the metastore, query `SYSTEM.INFORMATION_SCHEMA.ABAC_POLICY_DEFINITIONS`.

You will only see policies returned when you have `READ METADATA` or `MANAGE` on the securable where the policy is attached, or own it. This matches the access pattern of [DESCRIBE POLICY](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-aux-describe-policy.md).

This relation is an extension of the SQL Standard Information Schema.

## Definition

The `ABAC_POLICY_DEFINITIONS` relation contains the following columns:

| Name                 | Data type                                           | Nullable | Description                                                                                                                                                                                                                                                                                                                                        |
| -------------------- | --------------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `POLICY_ID`          | `STRING`                                            | No       | Unique identifier of the policy.                                                                                                                                                                                                                                                                                                                   |
| `POLICY_NAME`        | `STRING`                                            | No       | Name of the policy.                                                                                                                                                                                                                                                                                                                                |
| `POLICY_TYPE`        | `STRING`                                            | No       | The policy type. For example, `ROW_FILTER`, `COLUMN_MASK`, `GRANT`, or `DENY`.                                                                                                                                                                                                                                                                     |
| `CATALOG_NAME`       | `STRING`                                            | Yes      | Name of the catalog the policy is attached to, or that contains the schema or table the policy is attached to. `NULL` for metastore-attached policies (Beta).                                                                                                                                                                                      |
| `SCHEMA_NAME`        | `STRING`                                            | Yes      | Name of the schema the policy is attached to, or that contains the table the policy is attached to. `NULL` for metastore-attached and catalog-attached policies.                                                                                                                                                                                   |
| `SECURABLE_NAME`     | `STRING`                                            | Yes      | Name of the securable object the policy is attached to. `NULL` for metastore-attached, catalog-attached and schema-attached policies.                                                                                                                                                                                                              |
| `ON_SECURABLE_TYPE`  | `STRING`                                            | No       | Type of the securable object the policy is attached to: `METASTORE` (Beta), `CATALOG`, `SCHEMA`, or `TABLE`.                                                                                                                                                                                                                                       |
| `TO_PRINCIPALS`      | `ARRAY<STRING>`                                     | No       | [Principals](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-principal.md) (users, groups, or service principals) the policy applies to. Empty array `[]` when none are set.                                                                                                                                                        |
| `EXCEPT_PRINCIPALS`  | `ARRAY<STRING>`                                     | No       | [Principals](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-principal.md) excluded from policy application. Empty array `[]` when none are excluded.                                                                                                                                                                               |
| `FOR_SECURABLE_TYPE` | `STRING`                                            | No       | The type of securable the policy targets. For example, `TABLE` for row filters and column masks, or `MODEL`, `MODEL_SERVICE`, `MODEL_PROVIDER_SERVICE`, `MCP_SERVICE`, `AGENT_SERVICE` (Beta), or `SKILL` (Beta) for `GRANT` policies. In `DENY` policies, the securable type the privilege is denied on, such as `CATALOG`, `SCHEMA`, or `TABLE`. |
| `PRIVILEGES`         | `ARRAY<STRING>`                                     | Yes      | Privileges granted or denied by the policy. `NULL` for `ROW_FILTER` and `COLUMN_MASK` policies.                                                                                                                                                                                                                                                    |
| `WHEN_CONDITION`     | `STRING`                                            | Yes      | Conditional expression under which the policy applies. For example, a boolean expression that matches tables based on their governed tags.                                                                                                                                                                                                         |
| `MATCH_COLUMNS`      | `ARRAY<STRING>`                                     | Yes      | Columns referenced by the policy. `NULL` for `GRANT` and `DENY` policies.                                                                                                                                                                                                                                                                          |
| `GOVERNED_TAGS`      | `ARRAY<STRUCT<tag_key: STRING, tag_value: STRING>>` | No       | [Governed tags](https://docs.databricks.com/gcp/en/admin/governed-tags/index.md) referenced by the policy. `tag_value` is `NULL` when a reference specifies only a key. References with the same key and different values appear as separate elements. Empty array `[]` when the policy references no governed tags.                               |
| `CREATED_BY`         | `STRING`                                            | No       | [Principal](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-principal.md) who created the policy.                                                                                                                                                                                                                                   |

## Examples

```sql
-- List every GRANT policy in the current catalog.
> SELECT *
    FROM information_schema.abac_policy_definitions
    WHERE policy_type = 'GRANT';

-- List every DENY policy in the current catalog.
> SELECT *
    FROM information_schema.abac_policy_definitions
    WHERE policy_type = 'DENY';

-- Find all row filters and column masks attached to securable objects in a schema.
> SELECT policy_name, policy_type, on_securable_type, securable_name, when_condition, match_columns
    FROM information_schema.abac_policy_definitions
    WHERE policy_type IN ('ROW_FILTER', 'COLUMN_MASK')
      AND catalog_name = 'my_catalog'
      AND schema_name = 'my_schema';

-- Find policies that reference the `priority` governed tag.
> SELECT policy_name, policy_type, on_securable_type, securable_name
    FROM information_schema.abac_policy_definitions
    WHERE exists(governed_tags, tag -> tag.tag_key = 'priority');

```

## Related

* [ABAC GRANT policies](https://docs.databricks.com/gcp/en/data-governance/unity-catalog/abac/grant-policies.md)
* [ABAC DENY policies (Beta)](https://docs.databricks.com/gcp/en/data-governance/unity-catalog/abac/deny-policies.md)
* [Information schema](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-information-schema.md)
* [COLUMN\_MASKS](https://docs.databricks.com/gcp/en/sql/language-manual/information-schema/column_masks.md)
* [ROW\_FILTERS](https://docs.databricks.com/gcp/en/sql/language-manual/information-schema/row_filters.md)
* [DESCRIBE POLICY](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-aux-describe-policy.md)
* [SHOW POLICIES](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-aux-show-policies.md)
* [CREATE POLICY](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-ddl-create-policy.md)
* [DROP POLICY](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-ddl-drop-policy.md)
