Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

GuideAI & Data Engineering5 min read

Unity Catalog access control for regulated data: row filters, column masks and audit logs

A control list for banks, insurers and health systems on Databricks

Authored byCo-Founder and Managing Partner, Duczer East
Part of the Insights topic: Private AI & Data Architecture
On this page
  1. Row filters
  2. Column masks
  3. Control list
  4. Limits that surprise teams
  5. Audit logs
  6. Scenario: a claims table
  7. Designing for the audit question
  8. What we check before sign-off

Unity Catalog protects regulated data with three layers: grants that decide who can touch a table, row filters and column masks that decide what they see inside it, and audit logs that record what happened. Each layer has limits on runtimes, views and sharing that you should know before you promise them to an auditor.

This guide follows the Databricks documentation on row filters and column masks and audit logs, checked November 27, 2026.

Row filters

A row filter is a SQL function that runs for each row at query time. Rows for which it returns false are excluded from the result. The owner of the table, or a user with MANAGE, binds the function to the table. The pattern is two statements: create the function, then set it on the table with ALTER TABLE ... SET ROW FILTER.

A typical regulated use is regional or business-line visibility, for example a trader in one desk seeing only that desk's positions. Keep the function simple. Databricks advises few arguments, deterministic expressions and SQL functions over Python ones, because the function runs on every query.

Column masks

A column mask is a SQL function that receives the column value and returns either the value or a masked version. Each column takes one mask, the return type must match the column type, and a mask can read other columns as inputs, which lets you unmask for approved roles only. You bind it with ALTER COLUMN ... SET MASK.

Databricks warns that a mismatch between function and column types causes casts, and with ANSI mode off a failed cast can quietly become null. It recommends turning ANSI mode on so that errors surface instead of hiding. That matters for evidence: a mask that silently returns null looks like protection and is really a bug.

Control list

ControlWhat it doesLimit to state plainly
---------
Grants to groupsDecide who can read a table at allOnly as good as your group hygiene
Row filterHides rows by user or groupNot applicable to views; not supported below runtime 12.2 LTS
Column maskReplaces a column value for some usersOne mask per column; type mismatches can return null
Attribute-based policiesApply one rule across many tables by tagDatabricks recommends them for consistency at scale; check feature status for your plan
Audit logRecords who did what, whenRegional; retention not stated on the page, so copy what you must keep
LineageShows what feeds whatSee our lineage guide

Limits that surprise teams

  • Tables with row filters or column masks cannot be shared through Delta Sharing at the table level, according to the Databricks page.
  • Time travel and clones are not supported on these tables.
  • Path-based file access bypasses nothing and is also not supported, so make sure no job reads the underlying files directly.
  • On dedicated compute, Databricks documents minimum runtime versions and a serverless requirement for fine-grained access control. Writes need a newer runtime than reads.

Each of these shows up in testing, not in design. Run your real queries, jobs and exports against a filtered table before launch.

Audit logs

Unity Catalog events land in system.access.audit. Each row has an action name and service name, the identity that acted, the source address, the time, and the request and response. Account-level events carry a workspace id of zero. Some SQL definition fields are hidden unless you are an account admin or in a designated group.

For reviewers, three questions come up again and again. Who read this table in the quarter? Who changed a grant, and when? Who can read it today? Write a saved query for each, run it on a schedule, and store the output where your normal records retention applies. The system table is a source, not an archive.

Scenario: a claims table

This is an illustration, not a client. Suppose an insurer holds a claims table with a policyholder name, national identifier and claim amount. Adjusters should see the rows for their region. Fraud analysts should see every region but only the last four digits of the identifier. Auditors should see counts and amounts but never the identifier.

A row filter keyed on the user's group handles regions. A column mask on the identifier returns the full value for a small privileged group, the last four digits for fraud analysts and a fixed string for everyone else. Grants decide which groups reach the table at all. The audit table then answers who ran what against it.

Each piece is small. The risk sits in the joins between them: a view built over the table, a job that reads the files by path, a share to a partner. Those are the paths to test first.

Designing for the audit question

Reviewers rarely ask how a mask works. They ask who could see the raw value in a given quarter, and how you know. Design backwards from that. Keep the privileged group small and named. Log changes to its membership in your identity provider. Make the mask function readable, with a comment that states the rule in plain words, so that a reviewer can read the function itself as evidence.

What we check before sign-off

  1. Every regulated table has a named owner group and a grant list exported to evidence.
  2. Filters and masks are tested on every compute type your jobs and users use.
  3. No path-based access reaches the same files.
  4. The three audit queries run and their output is stored.
  5. A change process exists for adding a role or a mask.

Duczer East builds and tests these controls as part of Unity Catalog consulting. For the wider view, see data access governance and our note on attribute-based access and dynamic masking for AI data.

Related: Best practices for catalog and schema design · Connect Unity Catalog to an external catalog

Frequently asked questions

What is the difference between a row filter and a column mask?

A row filter hides whole rows from people who should not see them. A column mask changes the value of one column, for example showing the last four digits of an account number. Both are SQL functions that Unity Catalog applies at query time.

Can we put a row filter on a view?

No. Databricks documents that row filters and column masks cannot be applied to views. Apply them to the underlying tables, or use attribute-based policies where they fit.

Which Databricks runtime do filters and masks need?

Databricks documents that they are not supported on runtimes below 12.2 LTS, and that dedicated compute has its own minimum versions and serverless requirement. Check the filters and masks page for your compute type before you rely on them.

Where do Unity Catalog audit logs live?

In the system table system.access.audit, where each row is an event with the actor, time, action, request and response. Databricks notes that most logs are available only in the region of the workspace.

Is a mask enough to protect personal data?

Not alone. Masks protect query results. You also need tight grants, controlled file paths and a record of who looked. Treat the mask as one control in a set.

Authored by

Co-Founder and Managing Partner, Duczer East

David deBoisblanc is co-founder of Duczer East and a digital transformation and innovation leader in data-centric AI, agentic systems, and enterprise integration. He shapes intent-driven AI solutions that modernize how organizations use data, drawing on deep experience with Cloudera and complex enterprise integration landscapes.

Newsletter

The Practitioner's Briefing

Senior-level insights on agentic AI, data engineering and enterprise integration, delivered to your inbox.

One email when there is something worth reading. Unsubscribe any time.

Let's Talk

Want to discuss the ideas raised here?

Tell us what you are working on. A senior practitioner replies, and only your email is required.

Get a quote