How to Configure Databricks Unity Catalog RBAC

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up databricks unity catalog rbac to control who can read and change data. You build a safe setup by giving rules to account groups instead of single users. Data teams store many files, tables, and models across cloud workspaces. Without clear rules, anyone in a workspace might read or drop private records. A single governance layer solves this problem across all your compute clusters. It lets admins write rules once at the account level. Those rules then apply to every linked workspace

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You set up databricks unity catalog rbac to control who can read and change data. You build a safe setup by giving rules to account groups instead of single users.

Data teams store many files, tables, and models across cloud workspaces. Without clear rules, anyone in a workspace might read or drop private records. A single governance layer solves this problem across all your compute clusters. It lets admins write rules once at the account level. Those rules then apply to every linked workspace right away.

How databricks unity catalog rbac works in practice

The system uses a three-level namespace to group data assets. A metastore sits at the top and holds catalogs. Each catalog holds schemas, and each schema holds tables, views, or volumes. When you grant a right on a top object, child objects can inherit it. This design saves time when you manage hundreds of tables.

Three types of identities can get rights in this model. These are regular users, service principals for automated jobs, and groups. You should sync groups from your identity provider to the account level. Never give data rights to workspace-local groups or single user accounts. Always assign rights to account groups so team changes stay simple.

Start with a deny-by-default mindset for every new catalog you create. To read a table, a group needs traverse rights on the catalog and schema. Then the group needs the select right on the table itself. If you grant select at the catalog level, the group reads every table inside. Keep broad grants for shared bronze or silver data layers only. Lock down gold tables that hold sensitive business numbers or personal data.

How to assign ownership and manage safe defaults

Every object in the metastore has an owner with full control. By default, the person who creates a table becomes its owner. If that person leaves the company, scripts and jobs can break. You should set an account group or service principal as the owner instead. This practice keeps your data pipelines running when team members change roles.

Separate the duties of cloud admins, metastore admins, and catalog owners. Metastore admins can manage all objects, so keep that group very small. Give domain teams ownership of their own catalogs for daily work. They can then create schemas and tables without waiting on central IT.

Azure RBAC + Data Catalog Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Storage credentials and external locations also need strict rules inside the metastore. These objects map cloud storage paths to your data governance layer. Only give storage rights to trusted admin groups or deployment jobs. Regular analysts should only touch managed tables and views, not raw cloud files.

How to check grants and spot static rule gaps

Admins must check permissions often to catch privilege creep early. You can query system schemas to see who holds rights on each table. Look for direct user grants or broad rules on sensitive schemas. System audit logs also record who ran queries and changed permissions. Reviewing these logs helps you prove compliance during security audits.

Still, static catalog rules have blind spots once a user logs in. Catalog rules only check permissions when a session starts or touches an object. Once a group has select rights, any member can run broad queries. They can pull entire tables to local laptops through SQL clients or notebooks. Static roles also stay active around the clock, even when nobody is on call.

Row filters and column masks inside the catalog take manual work to maintain. Admins must write custom logic for every table that holds emails or phone numbers. If a new table goes live without a mask, raw data leaks out. Teams often need runtime controls to inspect queries and rewrite sensitive fields on the fly.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Should I grant permissions to users or groups in Unity Catalog?

Always grant permissions to account-level groups synced from your identity provider. This setup lets you add or remove people without changing catalog rules.

Why can a user with select rights still not read a table?

The user also needs usage rights on both the parent catalog and schema. Without parent traverse rights, the catalog blocks access to the child table.

Who should own production tables and schemas?

Assign ownership of production objects to a dedicated account group or service principal. This prevents broken jobs when an individual engineer changes teams or leaves.

The query runs. The emails stay hidden.