Context Lab

Databricks Cross-Engine ABAC: Govern External Spark and Iceberg Reads

Post · UC Governance · GA 2026-10-01 · Updated 2026-10-08

GA on Oct 1, 2026

External Spark and Iceberg engines can read Unity Catalog managed tables with ABAC, row filters and column masks still enforced.

Setup in four moves

Enable external data access, grant EXTERNAL USE SCHEMA, use a managed table with catalog commits, and set ServerSidePlanning.enabled in Spark.

Read only

External engines cannot write to policy-protected tables. A writer must be exempted from the policy, so treat it as privileged.

You pay for enforcement

Filtering runs on billed serverless compute. Track it in system.billing.usage where billing_origin_product is EXTERNAL_COMPATIBILITY.

    Topic summary · original diagrams · no autoplay

    Cross-engine ABAC became generally available on October 1, 2026. External engines such as Apache Spark, through Delta or the Iceberg REST catalog, can now read Unity Catalog managed tables while ABAC policies, row filters and column masks are still enforced. You no longer need an unmasked copy just to serve an outside engine.

    Two facts to know before you start: Databricks enforces the policies on serverless compute that you pay for, and external engines can only read policy-protected tables.

    External Spark and Iceberg readers pass through one Unity Catalog ABAC policy and receive filtered rows, read only
    External readers go through the same Unity Catalog policy, read only (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 when a team outside Databricks runs Spark or an Iceberg client and needs governed tables, and you want one set of policies in Unity Catalog instead of rules copied into each engine.

    Do not rely on it when the external engine must write to a protected table: writes are not supported while fine-grained controls are enforced, so a writer has to be exempted from the policy. It also does not support dynamic views, projecting VARIANT columns, filtering on BINARY columns, or column masks whose return type differs from the column type. Large aggregations may run slower.

    Getting started

    1. Enable external data access (metastore admin). In a workspace attached to the metastore: Catalog > gear icon > Metastore > Details tab > turn on External data access. It is off by default.
    2. Grant privileges. The querying principal needs EXTERNAL USE SCHEMA, plus SELECT on the table, USE CATALOG and USE SCHEMA. Only the parent catalog owner can grant EXTERNAL USE SCHEMA, and ALL PRIVILEGES does not include it.
      GRANT EXTERNAL USE SCHEMA ON SCHEMA catalog_name.schema_name TO `user@company.com`
    3. Use a managed table with catalog commits.
      -- New table (Databricks Runtime 16.4 and above)
      CREATE TABLE <catalog>.<schema>.<table> (id INT, name STRING)
      USING delta
      TBLPROPERTIES ('delta.feature.catalogManaged' = 'supported');
      
      -- Existing managed table (Databricks Runtime 18.0 and above)
      ALTER TABLE <catalog>.<schema>.<table>
      SET TBLPROPERTIES ('delta.feature.catalogManaged' = 'supported');

      Then attach your ABAC policies, row filters or column masks as you would for Databricks users.

    4. Configure the external Spark session. For the Delta path you need Delta-Spark 4.1+ and the Unity Catalog Spark connector 0.4+. The key setting is ServerSidePlanning.enabled, which turns on enforcement. Excerpt from the official config:
      "spark.sql.catalog.<uc-catalog-name>": "io.unitycatalog.spark.UCSingleCatalog",
      "spark.sql.catalog.<uc-catalog-name>.uri": "<workspace-url>",
      "spark.sql.catalog.<uc-catalog-name>.auth.type": "oauth",
      "spark.sql.catalog.<uc-catalog-name>.auth.oauth.uri": "<oauth-token-endpoint>",
      "spark.sql.catalog.<uc-catalog-name>.auth.oauth.clientId": "<oauth-client-id>",
      "spark.sql.catalog.<uc-catalog-name>.auth.oauth.clientSecret": "<oauth-client-secret>",
      "spark.sql.catalog.<uc-catalog-name>.ServerSidePlanning.enabled": "true",

      For the Iceberg path you need Iceberg-Spark 1.11+ and Apache Spark 4.0+, with a REST catalog pointing at Unity Catalog:

      "spark.sql.catalog.<uc-catalog-name>": "org.apache.iceberg.spark.SparkCatalog",
      "spark.sql.catalog.<uc-catalog-name>.type": "rest",
      "spark.sql.catalog.<uc-catalog-name>.uri": "<workspace-url>/api/2.1/unity-catalog/iceberg-rest/",

      Copy the full property list, including package versions, from the official page.

    5. Query and verify. Run a normal query, then compare the rows and masked columns with what the same principal sees inside Databricks.
      SELECT * FROM <uc-catalog-name>.<schema>.<table>;

    Cost and permission risks

    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.