Author:

Łukasz Wybieralski

Founder and CTO

Date:

Table of Contents

Unity Catalog is Databricks’ built-in governance layer for data and AI assets. It controls who can query registered tables and views, and lets teams restrict which rows or column values users see on supported compute.

 

It also helps teams find data, trace where it came from, and review recorded activity. To protect a production table, check which workspaces can reach it, who can query it, and who can access its files directly in cloud storage.

 

 

How is Unity Catalog organized?

 

A metastore is the top-level governance container for a Databricks account in a cloud region. Multiple workspaces in that region can use the same metastore. The metastore holds catalogs, and each catalog contains schemas. Schemas hold tables, views, and other assets.

 

A table such as prod_sales.reporting.customer_summary follows the three-part name catalog.schema.object. Unity Catalog securable objects

 

Storage credentials and external locations sit directly under the metastore. A storage credential authorizes Databricks to access cloud storage. An external location pairs a storage path with that credential. For managed tables, Unity Catalog manages the files as well as access.

 

For external tables, Unity Catalog governs access through Databricks while the storage team manages the files. Dropping an external table removes its registration and leaves the files in place. Direct access to the files depends on cloud identity and access management (IAM). Unity Catalog cloud storage guidance

 

Use a workspace-catalog binding to control which workspaces can reach a catalog. By default, catalogs are generally reachable from workspaces that share the metastore, subject to object privileges. The automatically created workspace catalog starts out bound to its own workspace.

 

If you isolate a catalog, queries from unbound workspaces are denied even when the user has a table grant. A read-only binding also blocks writes from the bound workspace. Review external location and storage credential bindings separately when they affect the design. Workspace-catalog binding

 

Which Unity Catalog permissions does a user need?

 

To query a table, a user generally needs USE CATALOG on the parent catalog, USE SCHEMA on the parent schema, and SELECT on the table. Grant privileges to account groups for teams and to scoped service principals for production automation.

 

Use table-level grants when a group should read only specific tables. Under Privilege Model 1.0, eligible catalog and schema grants apply to current and future objects inside them. A schema-level SELECT can therefore expose future tables to users with the required usage privileges.

 

Privilege Typical scope What it allows
USE CATALOG Catalog Lets a principal use objects in the catalog when it has the other required privileges.
USE SCHEMA Schema Lets a principal use objects in the schema when it has the other required privileges.
SELECT Table or view Reads the object with the required parent usage privileges.
MODIFY Table Supports inserts, updates, and deletes. The principal also needs SELECT and both parent usage privileges.
CREATE TABLE Schema Creates tables or views with the required parent usage privileges. Creating an external table also requires CREATE EXTERNAL TABLE on its external location.
MANAGE Supported securable Delegates administration, including changing grants. It does not directly grant data access, but holders can generally grant privileges to themselves where permitted.

 

BROWSE also lets users discover metadata in Catalog Explorer without granting query access. The Unity Catalog privileges reference lists supported objects and additional requirements.

 

Give an analyst group access to one table

 

Suppose a retailer stores customer records in prod_sales.reporting.customer_summary. It grants its sales-reporting-readers account group permission to use the catalog and schema and read the table. When an analyst in the group queries the table from an approved production workspace, Unity Catalog checks all three privileges.

 

On supported compute, a configured row filter can limit the analyst to customers in their region, and a column mask can redact email addresses. If the catalog is bound to production workspaces, the same analyst is denied from an unbound development workspace. The storage team still needs to restrict direct file access through cloud IAM.

 

For the SQL below, use an existing group and table, a SQL warehouse in a Unity Catalog-enabled workspace with access to the catalog, and a grantor authorized at all three scopes. Verify any required filters and masks before granting access to sensitive data. Databricks GRANT syntax

 

GRANT USE CATALOG ON CATALOG prod_sales TO `sales-reporting-readers`;
GRANT USE SCHEMA ON SCHEMA prod_sales.reporting TO `sales-reporting-readers`;
GRANT SELECT ON TABLE prod_sales.reporting.customer_summary
TO `sales-reporting-readers`;

 

Validate with a group member and a separate identity that should be denied. Check direct grants, inherited grants, and other group memberships when results differ from the design. Use Dateonic’s Databricks permissions guide for deeper troubleshooting.

 

When should you use a row filter, column mask, or dynamic view?

 

Choose the control based on what readers should see and where the rule must apply. A row filter limits which records come back, and a column mask changes the returned values in a column. A dynamic view can show selected columns or combine tables. Attribute-based access control (ABAC) can apply the same rule to many matching objects.

 

Control Use it when Example
Table-level row filter One table needs a row-visibility rule. Regional analysts see orders only for their region.
Table-level column mask Readers may see a row, but some need redacted values. Mask customer email addresses for a reporting group on one table.
ABAC row filter or column mask A common rule should follow governed tags across many objects. Apply one masking policy to matching email columns across a catalog.
Dynamic view A group needs a reporting view with selected or combined data. Expose order totals by region through a view and keep base-table access restricted.

 

AWS compute note. On dedicated compute, table-level filters and masks require Databricks Runtime 15.4 LTS or later and a serverless-enabled workspace for reads. Writes have additional limits. Table-level policy requirements

 

Dynamic views support SQL warehouses and standard compute. On dedicated compute, they also require Runtime 15.4 LTS or later and a serverless-enabled workspace. Dynamic view requirements

 

Where do ABAC and data classification fit?

 

ABAC is useful when the same rule should follow sensitive data across tables. A policy on a catalog, schema, or table uses governed tags to identify the data it protects. Readers still need permission to query the underlying object. ABAC row filters and column masks are generally available for supported tables. ABAC release notes

 

AWS compute and release notes. ABAC row filters and masks require serverless compute, or Runtime 16.4 or later on standard or dedicated compute. Dedicated compute also needs fine-grained access control filtering enabled.

 

Direct metastore policies and policies on regular views are Beta. For regular views, enable the workspace preview and use Runtime 19 or later. Check the requirements for your cloud before rollout. ABAC requirements

 

Databricks Data Classification can detect sensitive data in supported tables and apply tags when configured. Table classification is generally available. Scanning regular views is a separate Beta. Data Classification release notes

 

Check serverless availability and permissions before enabling classification on a catalog. Review detections, then configure and test the masking policy that uses those tags to redact values on reads. Configure Data Classification

 

What can lineage and audit logs prove?

 

Lineage helps you see what reads or writes a table and what may be affected if it changes. Catalog Explorer can show captured dependencies between tables and columns. The system tables system.access.table_lineage and system.access.column_lineage record events where Databricks can infer lineage. An empty result does not prove a table has no consumers. Lineage system tables

 

The query below finds named target tables written from the customer table in the example. It omits standalone reads and writes recorded only by path. Run it in a Unity Catalog-enabled workspace. For delegated access, grant USE CATALOG on system and USE SCHEMA and SELECT on the relevant system schema. System table access

 

SELECT DISTINCT target_table_full_name
FROM system.access.table_lineage
WHERE source_table_full_name = 'prod_sales.reporting.customer_summary'
  AND target_table_full_name IS NOT NULL;

 

Use the system.access.audit table for supported activity such as privilege changes. It is in Public Preview. Check which events it covers, how long it keeps them, and which regions are included. Audit log system table

 

Where users or jobs can reach files directly through cloud IAM, review the cloud permissions and logs too. For controls beyond data access, see Databricks Security Best Practices for Enterprises.

 

How do you roll out Unity Catalog safely?

 

Start with one production dataset and validate how people and jobs access it before repeating the design. Many workspaces already have Unity Catalog enabled. Confirm the workspace’s metastore and region before provisioning anything.

 

Authenticate the current Databricks CLI to the intended workspace and list the catalogs visible to the caller. A non-admin sees catalogs they own or have USE CATALOG on. Use a metastore admin identity if the review requires a complete inventory. Catalogs CLI reference

 

databricks catalogs list

 

  1. Confirm ownership. Identify the catalog and schema owners, the groups that need read or write access, and the workloads that need a service principal.
  2. Set production boundaries. If development workspaces should stay outside the production catalog, bind it to the approved workspaces and verify denial from development. Review direct cloud access to both managed and external storage.
  3. Validate automation and consumers. Give production jobs scoped service principals. Check allowed and denied queries, masking and filtering on the actual compute used, and any required writes. Capture the effective grants and a sample audit or lineage record before expanding the rollout.
  4. Migrate one workload at a time. Inventory Hive objects, grants, jobs, and path-based reads. Map them to three-part names and choose a migration method by object type. Some external tables can be registered without copying their files. Verify downstream jobs and access before retiring each legacy path. Databricks migration guidance · Unity Catalog vs. Hive Metastore

 

When should you use OpenSharing?

 

Use Unity Catalog grants and bindings for users in workspaces on the same metastore. For governed sharing with a different metastore or an external recipient, evaluate OpenSharing, formerly Delta Sharing. Choose the sharing mode and verify recipient access to the intended dataset.

 

Provider-side row filters or masks should not be assumed to carry over to recipients. For example, sharing a table protected by ABAC requires the share owner to be exempt from the policy, and the provider’s policy does not govern recipient access. OpenSharing · ABAC sharing limitations

 

If production grants, workspace boundaries, and cloud storage permissions are managed by different teams, bring those owners together for a review of one real workload. Dateonic’s Unity Catalog implementation and consulting services can help assess that access model and plan a phased rollout or migration.