What you will be able to do
- Explain who owns a Unity Catalog object by default and what an owner can do with it
- Transfer ownership of tables and views to groups with ALTER ... OWNER TO, and predict when a transfer will be refused
- Delegate administration with MANAGE without handing out more power than needed
- Choose storage settings that keep every read and write under Unity Catalog control
- Protect PII with row filters, column masks and ABAC policies, and pick between them and dynamic views
Key concept
Object ownership — Every Unity Catalog object has exactly one owner, which holds every privilege on it and decides who else gets access. Securing data starts with making sure that owner is a group or service principal, not one person's account.
1.Who owns an object, and what ownership gives
Every securable object in Unity Catalog has an owner, and ownership is the strongest position you can hold on it. The owner of a table has all privileges on it, such as SELECT and MODIFY. The owner can also grant privileges to other principals and hand ownership to someone else. Nobody has to grant the owner anything, because ownership already includes it all.
By default, the owner is whoever created the object. If an analyst runs CREATE TABLE under their personal account, that account owns the table. It does not go to the schema's owner or to an admin group. There is one built-in exception. When Unity Catalog is enabled automatically for a workspace, a workspace catalog is created, and workspace admins are its default owners. As owners, they can manage privileges on that catalog and everything inside it.
Ownership of a container also reaches down. If you own a catalog or schema, you can manage every child object in it, even objects someone else owns. Catalog and schema owners can grant privileges on any object inside their container, and they can transfer its ownership. Because of this, the owner of a production catalog effectively controls every table in it. That is why the choice of owner at the top of the hierarchy matters most.
Checkpoint 1 of 9· Check yourself
The prod catalog is owned by the platform_admins group, and its sales schema is owned by the data_engineers group. An analyst signed in with their personal account runs CREATE TABLE prod.sales.orders_pii .... No one changes ownership afterwards. Who owns the new table?
In Unity Catalog, the principal that creates an object owns it by default. The table does not go to the schema owner or to an admin. Catalog and schema owners can manage the table and transfer its ownership, but that does not make them its owner. This is why best practice is for creators to reassign ownership to a group.
“The creator of any object is its first owner. Creators should reassign ownership to appropriate groups.”Source: docs.databricks.com
Checkpoint 2 of 9· Exam question
By default in Unity Catalog, who owns a securable object such as a table immediately after it is created, and who owns the workspace catalog when Unity Catalog is automatically enabled for a workspace?
Correct answer: B — The user who runs the CREATE TABLE statement owns the new object by default, and workspace administrators automatically own the workspace catalog created when Unity Catalog is auto-enabled.
- A. Ownership is not assigned to a group by default when an object is created, and the workspace catalog's owner comes from workspace administrator status, not from inheriting a metastore root owner.
- B. The creator of an object is its default owner in Unity Catalog, and when Unity Catalog is automatically enabled for a workspace, workspace administrators are set as owners of the resulting workspace catalog.
- C. Metastore admins do not automatically own every new object; ownership defaults to the creating user, and requiring a separate grant before that user can modify their own object is not how Unity Catalog behaves.
- D. New objects are not owned by the parent schema's owner by default, and the workspace catalog is not left ownerless; every securable object, including the workspace catalog, must have an owner from creation.
2.Transferring ownership to a group
An object owned by one person is a problem waiting for that person's next job change. Grants, audits and the right to change the object all depend on one account. Databricks' guidance is to assign object ownership to groups, especially in production, and to assign production catalogs and schemas to groups rather than individuals. The creator is only the first owner. Creators are expected to reassign ownership to the appropriate group.
Ownership is changed directly, not by stacking grants or setting table properties. You can do it in Catalog Explorer or with an ALTER ... OWNER TO statement that names the new owner. Once the statement runs, the group is the owner and holds every ownership right, including granting privileges and transferring ownership again.
ALTER TABLE mycatalog.myschema.orders OWNER TO `accounting`;Four kinds of principal can transfer ownership: the current owner, a metastore admin, the owner of the container (the catalog for a schema, the schema for a table), and a user with MANAGE on the object.
Views, functions and models have a stricter rule. Only a metastore admin can transfer their ownership to any user, service principal or group in the account. A current owner, or someone holding MANAGE, can transfer ownership only to their own username or to a group they belong to. So ALTER VIEW ... OWNER TO fails if an owner tries to give a view to an outside contractor's personal account. The rule prevents privilege escalation, because whoever owns a view controls the query that reads the source data.
Moving a view to a group also helps teams. By default, only a view's owner can edit its definition, which stops an editor from rewriting it to read data they shouldn't see. When a group owns the view and has access to its source tables, every member can edit the definition, and data access stays limited to what the group can see.
Editing a view's definition is an ownership right, not a grant. By default, only the owner can change it. To let several people edit safely, transfer ownership to a group they belong to and give that group access to the source tables.
Checkpoint 3 of 9· Check yourself
Which of these principals can NOT move ownership of sales.orders from the analyst who created it to the accounting group?
Ownership can be transferred by the current owner, a metastore admin, the owner of the container, or a user with MANAGE. ALL PRIVILEGES leaves out MANAGE, so a holder of ALL PRIVILEGES gets neither ownership nor the right to transfer it.
“Be sparing in your assignment of ALL PRIVILEGES, which includes all privileges except MANAGE, EXTERNAL USE LOCATION, and EXTERNAL USE SCHEMA.”Source: docs.databricks.com
Checkpoint 4 of 9· Exam question
A data analyst created a production sales table under their personal user account. Ahead of a team reorganization, the data platform team wants the table's ownership tied to the analytics group rather than the original creator, so that future privilege grants and audits survive staff turnover. Which SQL statement correctly transfers ownership?
Correct answer: B — Run ALTER TABLE sales.orders OWNER TO analytics_team; to reassign the table's owner to the group, which then holds every ownership privilege on the object.
- A. Granting every privilege gives the group broad access but leaves the original analyst listed as owner, so ownership-based behaviors like default grant authority and audit attribution still point to the departing individual.
- B.
ALTER TABLE ... OWNER TOis the Unity Catalog statement that reassigns an object's owner. Once the group is the owner, it holds full ownership privileges, including the ability to grant access and manage the table going forward. - C. Unity Catalog does not read table properties to determine ownership;
TBLPROPERTIESis metadata storage, not the ownership mechanism, so this statement would not change who Unity Catalog treats as the owner. - D.
REASSIGN OWNED BYis PostgreSQL syntax, not a Unity Catalog SQL statement, so running it against a Databricks SQL warehouse or cluster would fail rather than transfer ownership.
Checkpoint 5 of 9· Exam question
A data analyst who owns a Unity Catalog view tries to transfer its ownership directly to an external contractor's individual user account, someone who is not a member of any group the analyst belongs to. The ALTER VIEW ... OWNER TO statement fails with a permissions error. What explains this restriction?
Correct answer: A — Only metastore admins can move view ownership to any arbitrary principal; other owners may transfer ownership only to themselves or a group they belong to, which blocks privilege escalation.
- A. Unity Catalog restricts who can hand off ownership of views, functions, and models to arbitrary users specifically to prevent an owner from escalating a stranger's access; only a metastore admin can complete that kind of arbitrary transfer.
- B. View ownership can be transferred with
ALTER VIEW ... OWNER TO, so claiming it is permanently fixed is incorrect, and dropping and recreating the view is not the actual mechanism or requirement here. - C. The failure is not about a missing catalog-level privilege on the contractor's account; it is about who the transferring principal is allowed to name as the new owner, which this option does not address.
- D. Ownership transfer for a view does not depend on holding
MODIFYon its underlying tables; the restriction that actually applies here is about the identity of the recipient, not privileges on source data.
3.Delegating with MANAGE and limiting re-sharing
MANAGE lets you delegate ownership powers without transferring ownership. A principal with MANAGE on an object can grant and revoke privileges on it, transfer its ownership, and delete it, all without being the owner. Owners grant MANAGE to share those powers. That makes it the right tool when a platform team must administer access to a group-owned table.
Ownership and MANAGE both let someone pass access on to others, so Databricks advises being sparing with both. Only a metastore admin, an owner, a parent catalog or schema owner, or a holder of MANAGE can grant privileges on an object. Each one you add is another person who can widen access. Give ownership or MANAGE to the one group responsible for administering grants on the object, not to everyone who works with it.
Usage privileges stop a table owner from sharing outside the boundaries set higher up. Owners of catalogs and schemas, and holders of MANAGE on them, grant USE CATALOG and USE SCHEMA. A table owner who grants SELECT therefore cannot open the table to people the container owners have not admitted. Write access needs the same care: reserve direct MODIFY on production tables for service principals, so changes come from pipelines, not from people's sessions.
The word "manage" means three different things in Unity Catalog, and questions mix them up on purpose.
| Term | Meaning | Applies to |
|---|---|---|
| "Managed by Unity Catalog" | Unity Catalog governs access, auditing and lineage for the object | All registered objects, including external tables and volumes |
| Managed table or managed volume | Unity Catalog also controls the storage location and file lifecycle | Tables and volumes only |
| MANAGE privilege | Assign or revoke privileges on, transfer ownership of, and delete an object without being the owner | All Unity Catalog securable objects |
Checkpoint 6 of 9· Match them up
Questions about Unity Catalog often use the word "manage" with different meanings. Match each term to what it actually gives or means.
Tap a term, then the definition that fits it.
Being "managed by Unity Catalog" is about governance and applies to every registered object. A managed table or volume adds control over storage and file lifecycle. MANAGE is a privilege that hands out ownership powers. Usage privileges set the outer limit on who a table owner can share with.
“Generally, MANAGE allows a user to assign or revoke privileges on, transfer ownership of, and delete an object without being the owner.”Source: docs.databricks.com
4.Storage that keeps Unity Catalog in control
Grants and masks protect data only if every read goes through Unity Catalog. If someone reads the files straight from cloud storage, none of those controls apply. Most storage best practices aim to close that path.
Managed tables are the secure default. With Managed vs external tables in mind, the difference that matters for security is this: for a managed table, Unity Catalog controls both governance and the file lifecycle, including where the files live, how they are organized and when they are deleted. Databricks recommends managed tables for most use cases and for all new tables, because they get the full benefit of Unity Catalog governance. External tables are mainly for Hive metastore upgrades or for disaster-recovery needs that managed tables cannot meet.
The bucket behind managed storage must stay private to Unity Catalog. Do not use a bucket that can be reached from outside Unity Catalog. If an external service or principal reads the managed location directly, access control and auditing for those tables and volumes no longer hold. Do not reuse a bucket that was used for the DBFS root, either.
External locations need the same restraint. Recall from Storage credentials and external locations that an external location connects Unity Catalog to a cloud storage path. These paths are often broad, such as an entire bucket like s3://mycompany-hr-prod. Grant CREATE EXTERNAL LOCATION only to the administrators who set up storage connections, or to trusted data engineers. Give everyone else external tables or volumes registered on top of the location. Those sit inside a catalog and schema, so catalog and schema owners keep final control over who can read them.
Checkpoint 7 of 9· Check yourself
A platform team is planning storage for a new HR catalog that will hold PII. Which part of their plan would let reads of the HR data skip Unity Catalog's access control and auditing?
If an outside tool reads files directly from the managed storage location, it does not go through Unity Catalog. Grants and masks do not apply to those reads, and they are not audited. The other options follow the recommended practices: managed tables for new data, tightly limited CREATE EXTERNAL LOCATION, and a dedicated bucket that is not reused from the DBFS root.
“bypassing Unity Catalog, access control and auditability on managed tables and volumes are compromised.”Source: docs.databricks.com
5.Row filters and column masks for PII
Row filters and column masks protect PII inside a table that many people query. Each user sees only the rows and values they are allowed to see. Both are SQL user-defined functions that Unity Catalog runs at query time, so nobody needs a separate copy of the table.
A row filter decides which rows a user can see. The function is evaluated for each row, and rows where it returns FALSE are dropped from the results. A typical use is limiting users to their own region, department or account. A column mask decides what a user sees in one column. The function takes the column value and returns either the original or a masked version, so the return type must match or be castable to the column's type. Each column can have only one mask, but a mask can take other columns as inputs, for example to reveal an email only for rows in the user's region.
At table level, the table owner, or a user with MANAGE, attaches these functions one table at a time. A row filter is attached with ALTER TABLE ... SET ROW FILTER and a mask with ALTER TABLE ... ALTER COLUMN ... SET MASK. Each applies only to that table or column. This gives precise control for table-specific logic, but it does not scale well: fifty tables with an email column need fifty mask assignments.
Filters and masks also affect performance. Users must never see base values before the filter or mask is applied. When the engine has to choose between an optimization and preventing that leak, it always takes the secure option. Write the functions to give it as few of those choices as possible:
- Prefer simple
CASEexpressions over mapping tables or subqueries. - Mask only columns that are truly sensitive, and reuse masking functions.
- Keep UDF arguments few, because referenced columns can't be optimized away.
- Use expressions that can't throw errors, such as
try_divide, so an error like division by zero can't reveal hidden values. - Prefer SQL UDFs to Python UDFs.
Checkpoint 8 of 9· Check yourself
Support agents query crm.customers, which already has a column mask on email that hides every address. Compliance now wants agents to see the real email only on rows from their own region. Every agent must still see all customer rows. What should the table owner do?
A column can have only one mask, but that mask can take other columns as inputs. So one mask that reads region can show or hide each email row by row. A row filter would remove whole rows, which agents still need to see, and filters and masks run at query time, so nobody needs a separate copy of the table.
“Each column can have one mask. Column masks can take other columns as inputs to vary behavior based on multiple attributes.”Source: docs.databricks.com
Sources5
6.ABAC policies and choosing a protection method
Attribute-based access control (ABAC) applies filters and masks based on tags, not on individual tables. As covered in Tags and governed tags, a governed tag is a controlled label such as a PII classification. An ABAC policy names the tag condition it protects. When a table or column carries the matching tag, the policy applies automatically. A single policy on a catalog or schema can therefore mask every PII column inside it, including in tables created next month, once they are tagged. Data Classification can do that tagging for you, because it automatically classifies and tags sensitive columns.
Policies are created with CREATE POLICY and attached to a metastore (Beta), catalog, schema or table by its owner or a holder of MANAGE. A column-mask policy names the masking UDF, the principals it applies to, any principals that are exempt, and a MATCH COLUMNS condition that finds the tagged columns. ABAC policies are also evaluated more efficiently than table-specific UDFs, which is part of why Databricks recommends them.
COLUMN MASK function_name
TO principal [, ...]
[EXCEPT principal [, ...]]
FOR TABLES
[WHEN condition]
[MATCH COLUMNS condition [[AS] alias] [, ...]]
ON COLUMN alias
[USING COLUMNS (function_arg [, ...])]Dynamic views are the older way to hide PII. They filter or mask inside a view's SQL, usually by checking group membership. They are still the right tool when you want to publish a curated, joined or reshaped version of the data to people with no access to the base tables. They do not protect the base table itself, though: anyone who can query the table directly bypasses the view's logic. Use ABAC for rules that must hold everywhere, table-level filters and masks for logic specific to one table, and dynamic views for a curated, shareable layer.
| Approach | Applies to | Managed using | Best used for |
|---|---|---|---|
| Table-level row filters and column masks | Individual tables and columns | ALTER TABLE by the table owner or a user with MANAGE | Table-specific logic |
| ABAC policies | Tables and columns matched by tag conditions | CREATE POLICY attached to a catalog, schema, or table by its owner or a user with MANAGE | Centralized rules applied automatically across many tables |
| Dynamic views | A view built from one or more base tables | SQL logic in the view definition | Sharing a curated or transformed version of the data |
Checkpoint 9 of 9· Match them up
A governance team needs to protect PII in several situations. Match each protection tool to the situation it fits best.
Tap a term, then the definition that fits it.
ABAC policies are attached higher up and apply wherever a tag matches, so they suit central rules that table owners can't override. Table-level masks handle logic for one table. Dynamic views publish a curated layer for people with no access to the base tables. Data Classification adds the tags that ABAC policies match on.
“Use ABAC when you need consistent rules across many tables, separation of duties between policy authors and data stewards”Source: docs.databricks.com
Sources
(8)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Workspace admins are the default owners of the workspace catalog.”
↩︎ Who owns an object, and what ownership gives“You can transfer object ownership if you are the current owner, a metastore admin, the owner of the container”
↩︎ Transferring ownership to a group“only a metastore admin can transfer ownership of a view, function, or model to any user, service principal, or group”
↩︎ Transferring ownership to a group“restricted to transferring ownership to their username or to a group that they are member of”
↩︎ Exam trap 2 - 2.
“The creator of any object is its first owner.”
↩︎ Who owns an object, and what ownership gives“Catalog and schema owners can transfer ownership of any object in the catalog or schema.”
↩︎ Who owns an object, and what ownership gives“Assign object ownership to groups, especially if objects are used in production.”
↩︎ Transferring ownership to a group“By default, only the owner of a view or metric view can edit its definition.”
↩︎ Transferring ownership to a group“Be sparing in your assignment of ownership and the MANAGE privilege.”
↩︎ Delegating with MANAGE and limiting re-sharing“Reserve direct MODIFY access to production tables for service principals.”
↩︎ Delegating with MANAGE and limiting re-sharing“Do not use a bucket that can be accessed from outside of Unity Catalog.”
↩︎ Storage that keeps Unity Catalog in control“access control and auditability on managed tables and volumes are compromised.”
↩︎ Storage that keeps Unity Catalog in control“Databricks recommends managed tables and volumes because they allow you to take full advantage of Unity Catalog governance capabilities”
↩︎ Storage that keeps Unity Catalog in control“Grant the ability to create external locations only to administrators”
↩︎ Storage that keeps Unity Catalog in control“Databricks recommends registering external tables or volumes on top of external locations and granting users access to data using volumes or tables.”
↩︎ Storage that keeps Unity Catalog in control“An object's owner has all privileges on the object, such as SELECT and MODIFY on a table”
↩︎ Key concept“Be sparing in your assignment of ALL PRIVILEGES, which includes all privileges except MANAGE, EXTERNAL USE LOCATION, and EXTERNAL USE SCHEMA.”
↩︎ Exam trap 1“The creator of any object is its first owner. Creators should reassign ownership to appropriate groups.”
↩︎ Exam trap 3“The creator of any object is its first owner. Creators should reassign ownership to appropriate groups.”
↩︎ Checkpoint“Be sparing in your assignment of ALL PRIVILEGES, which includes all privileges except MANAGE, EXTERNAL USE LOCATION, and EXTERNAL USE SCHEMA.”
↩︎ Prediction“bypassing Unity Catalog, access control and auditability on managed tables and volumes are compromised.”
↩︎ Checkpoint - 3.https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/permissions-conceptsOfficial docs
“When you own a container object, you automatically get the ability to manage all child objects, even if you don't own those children directly.”
↩︎ Who owns an object, and what ownership gives“this prevents table owners from granting access outside approved boundaries.”
↩︎ Delegating with MANAGE and limiting re-sharing - 4.https://docs.databricks.com/aws/en/data-governance/unity-catalog/managed-versus-externalOfficial docs
“MANAGE allows a user to assign or revoke privileges on, transfer ownership of, and delete an object without being the owner.”
↩︎ Delegating with MANAGE and limiting re-sharing“Managed assets: Unity Catalog controls both governance (access control, auditing, lineage) and the underlying file storage lifecycle”
↩︎ Storage that keeps Unity Catalog in control“Generally, MANAGE allows a user to assign or revoke privileges on, transfer ownership of, and delete an object without being the owner.”
↩︎ Checkpoint - 5.
“Rows where the function returns FALSE are excluded from query results.”
↩︎ Row filters and column masks for PII“The mask is a SQL UDF that takes the column value as input and returns the original value or a masked version.”
↩︎ Row filters and column masks for PII“Table-level row filters are bound to a single table using ALTER TABLE ... SET ROW FILTER and managed by the table owner.”
↩︎ Row filters and column masks for PII“it always makes the secure choice, which can affect query performance.”
↩︎ Row filters and column masks for PII“Use deterministic expressions that never throw errors, such as try_divide.”
↩︎ Row filters and column masks for PII“Policy logic is also evaluated more efficiently than table-specific UDFs.”
↩︎ ABAC policies and choosing a protection method“expose a curated, transformed, or joined version of your data to users who don't have access to the underlying tables”
↩︎ ABAC policies and choosing a protection method“ABAC scales across catalogs and schemas and can be defined by higher-level admins, so table owners can't override or remove them.”
↩︎ Exam trap 4“Each column can have one mask. Column masks can take other columns as inputs to vary behavior based on multiple attributes.”
↩︎ Checkpoint“ABAC scales across catalogs and schemas and can be defined by higher-level admins, so table owners can't override or remove them.”
↩︎ Prediction“Use ABAC when you need consistent rules across many tables, separation of duties between policy authors and data stewards”
↩︎ Checkpoint - 6.
“When a securable object has the attributes targeted by a policy, that policy takes effect automatically”
↩︎ ABAC policies and choosing a protection method - 7.
“Databricks Data Classification uses an agent to automatically classify and tag tables in your catalog.”
↩︎ ABAC policies and choosing a protection method - 8.
“EXCEPT principal [, ...]: Principals exempt from the policy.”
↩︎ ABAC policies and choosing a protection method