Context Lab

Databricks Metastore-Level ABAC Policies (Beta): One Policy for Every Catalog

Post · UC Governance · Beta 2026-09-17 · Updated 2026-10-08

Beta since Sep 17, 2026

Attach one row filter, column mask, GRANT or DENY policy at the metastore. It covers every catalog, including new ones.

Metastore admin only

Creating, updating and deleting these policies needs the metastore admin role. SQL changes need Databricks Runtime 19 or above.

Whole-metastore blast radius

A wrong policy hits every matching catalog, schema and table at once. Test the rule on one schema before ON METASTORE.

Tags and recovery gaps

Untagged columns stay unprotected, and managed disaster recovery does not replicate these policies. Keep DROP POLICY ready.

    Topic summary · original diagrams · no autoplay

    Metastore-level ABAC policies entered Beta on September 17, 2026. You can attach one row filter, column mask, GRANT or DENY policy to the metastore itself, and it applies to every catalog, schema and supported object under it, including catalogs created later.

    Three facts before you start:

    One ABAC policy at the metastore covers catalogs A and B plus catalogs created later
    One metastore policy reaches every catalog, including new ones (original)

    What is new

    Releases are staged. Your account may get the feature a week or more after the release date.

    When to use it, and when not to

    Use it for a rule that truly applies everywhere, such as masking every column tagged ssn, and only when governed tags are applied consistently across catalogs.

    Do not use it for a rule that belongs to one team or one catalog; attach that at catalog or schema level. Avoid it while tagging is incomplete, because untagged columns stay unprotected. It also does not fit if you depend on Unity Catalog-managed disaster recovery (see risks), or if you need GRANT or DENY on non-catalog objects such as external locations, storage credentials, shares or connections. Not sure whether ABAC, a row filter or a dynamic view fits? Try the UC row-level security method picker.

    Getting started

    1. Check permissions and compute. Creating, updating and deleting needs the metastore admin role. Listing and viewing needs READ METADATA or metastore admin. Changing policies with SQL needs Databricks Runtime 19 or above. You also need EXECUTE on the UDF that does the filtering or masking.
    2. Create the masking UDF. Official example from the policies page:
      CREATE FUNCTION ssn_to_last_nr (ssn STRING, nr INT) RETURNS STRING
        RETURN right(ssn, nr);
    3. Test on a narrow scope first. The official schema-level version of the same mask:
      CREATE POLICY mask_ssn
      ON SCHEMA prod.customers
      COLUMN MASK ssn_to_last_nr
      TO us_analysts EXCEPT admins
      FOR TABLES
      MATCH COLUMNS has_tag_value('pii', 'ssn') AS ssn
      ON COLUMN ssn
      USING COLUMNS (4);

      Query the tables as a member of the target group and as an exempt user, then drop the test policy.

    4. Attach at the metastore. In Catalog Explorer: Catalog > gear icon > Metastore > Policies tab > New policy. The Scope field is set to the current metastore. Or in SQL, with the official example:
      CREATE POLICY ssn_mask
      ON METASTORE
      COLUMN MASK ssn_to_last_nr
      TO `account users` EXCEPT `HR admins`
      FOR TABLES
      MATCH COLUMNS has_tag('ssn') AS ssn
      ON COLUMN ssn
      USING COLUMNS (4);

      ON METASTORE always targets the metastore you are working in. Adding a metastore name is a syntax error. For DENY and GRANT examples and the REST payload, see the official page.

    5. Verify, and keep the rollback ready.
      SHOW POLICIES ON METASTORE;
      
      SELECT *
      FROM system.information_schema.abac_policy_definitions
      WHERE on_securable_type = 'METASTORE';
      
      -- Rollback
      DROP POLICY ssn_mask ON METASTORE;

      SHOW EFFECTIVE POLICIES on a catalog or schema also lists policies inherited from the metastore.

    Permission risks

    Staged rollout

    Move in three steps: one test schema, then one catalog, then the metastore. Apply each step in a quiet window with the DROP POLICY statement ready, and confirm results with a target user and an exempt user before the next step. If you also serve tables to outside engines, read Cross-engine ABAC to see how ABAC policies apply to those readers.

    Sources

    Checked against official Databricks documentation on 2026-10-08. Context Lab is an independent education site and is not affiliated with Databricks, Inc. Not a compliance guarantee.