What you will be able to do
- Work out the full set of grants a user needs to read or write a Unity Catalog table
- Predict what a grant on a catalog or schema gives access to through inheritance
- Tell apart ALL PRIVILEGES, MANAGE and BROWSE
- Grant, revoke and inspect privileges with SQL or Catalog Explorer
- Choose a row filter rather than a column mask or a copy of the data to limit which rows each user sees
Key concept
Usage privileges — USE CATALOG and USE SCHEMA on the parent containers are a gate in front of every data privilege. A SELECT or MODIFY grant only works once the user also holds both usage privileges on the path to the object.
1.Privileges are granted on securable objects
Unity Catalog secures data by attaching privileges to objects in its hierarchy. A metastore holds catalogs, catalogs hold schemas, and schemas hold tables, views, volumes and functions. Each of these is a securable object, so each one can carry grants to a user, service principal or group. The privileges an analyst meets most often are SELECT (read a table or view), MODIFY (write to a table), CREATE TABLE (create tables in a schema), and the two usage privileges USE CATALOG and USE SCHEMA.
Nothing is allowed by default. A new user has no access to data in a metastore, and every action needs a privilege that someone granted explicitly. When a query fails with a permission error, the question is therefore always which grant is missing, never which deny is getting in the way.
Two privileges are composites with narrower children. MODIFY covers the write actions INSERT, UPDATE and DELETE (in Beta), so you can hand out only part of the write access. Reading needs no write privilege at all, because SELECT alone is the read privilege.
Checkpoint 1 of 8· Check yourself
An analyst already holds USE CATALOG and USE SCHEMA on the path to the table sales.raw.orders. They need to append new rows to it, but they must not be able to change or delete existing rows. Which grant on the table fits?
MODIFY is a composite privilege. Its children (INSERT, UPDATE and DELETE) let you hand out only part of the write access, so granting INSERT allows appending without allowing updates or deletes. Granting MODIFY would also give UPDATE and DELETE.
“MODIFY is a composite privilege, and INSERT, UPDATE, and DELETE (Beta) are its children.”Source: docs.databricks.com
2.SELECT needs USE CATALOG and USE SCHEMA
USE CATALOG and USE SCHEMA are usage privileges. Neither grants access to data on its own. Together they let a user pass through the containers to reach an object, and the object's own privilege then decides what the user can do with it. Reading analytics.finance.transactions takes USE CATALOG on analytics, USE SCHEMA on analytics.finance and SELECT on the table. Leave out any one of the three and the query fails.
| Operation | Required privileges |
|---|---|
| Read data from a table or view | USE CATALOG on catalog, USE SCHEMA on schema, SELECT on table or view |
| Write data to a table | USE CATALOG on catalog, USE SCHEMA on schema, MODIFY on table |
| Create a table in a schema | USE CATALOG on catalog, USE SCHEMA on schema, CREATE TABLE on schema |
| Create a schema in a catalog | USE CATALOG on catalog, CREATE SCHEMA on catalog |
| Read files from a volume | USE CATALOG on catalog, USE SCHEMA on schema, READ VOLUME on volume |
| Execute a function | USE CATALOG on catalog, USE SCHEMA on schema, EXECUTE on function |
The extra requirement is intentional, because it lets the people above a table control who can reach it. A table owner who grants SELECT to someone in another department hasn't actually opened the table to them. Every securable object has an owner, and an owner holds all privileges on the object, including the right to grant them to others. MANAGE extends part of that to someone who is not the owner: it lets them manage privileges on an object, transfer its ownership and delete it. Only the owners of the catalog and schema, or users with MANAGE on them, can grant the usage privileges. That stops individual table owners from sharing data outside the boundaries the catalog and schema owners set.
Checkpoint 2 of 8· Match them up
Each operation needs a different set of grants. Match each operation to the full set of privileges it requires.
Tap a term, then the definition that fits it.
Every operation needs the usage privilege on each container above the object it acts on, plus the privilege for the operation itself. Creating a schema acts on the catalog, so it needs USE CATALOG but no USE SCHEMA. Working with a table or volume needs both usage privileges.
“Create a schema in a catalog | USE CATALOG on catalog, CREATE SCHEMA on catalog”Source: docs.databricks.com
3.Grants on catalogs and schemas flow down
Catalogs and schemas are container objects, and a privilege granted on a container also applies to everything inside it. This covers the children that exist now and any created later. If you grant SELECT on the finance schema, the grantee can read every table and view in finance, including a table someone creates next month. You don't need a separate grant on each table.
Inheritance only passes down the privilege you granted. It doesn't add the usage privileges. SELECT on a whole catalog still needs USE CATALOG on that catalog and USE SCHEMA on each schema the user reads from. A user with SELECT on a schema but no USE CATALOG on its catalog therefore can't read anything. Granting SELECT again on each table won't fix it, because the schema grant already reached those tables.
Containers also carry creation privileges such as CREATE SCHEMA on a catalog and CREATE TABLE on a schema. Granting CREATE TABLE at the catalog level lets the grantee create tables in any schema of that catalog where they also hold USE SCHEMA.
Checkpoint 3 of 8· Check yourself
The reporting group was granted USE SCHEMA and SELECT on the schema analytics.finance, and nothing on the analytics catalog. Its queries fail on every table in finance, including one created yesterday. What fixes this?
The schema-level SELECT already reaches every current and future table in finance, so more SELECT grants won't help. Inheritance doesn't supply usage privileges, so the missing USE CATALOG on analytics is what blocks the queries.
“For example, granting SELECT on a catalog allows users to read all tables in that catalog (with appropriate usage privileges).”Source: docs.databricks.com
Checkpoint 4 of 8· Exam question
A data analyst has been granted SELECT on the finance schema inside the analytics catalog, but every query against the table analytics.finance.transactions fails with a permission error. What additional grant is most likely needed to resolve this?
Correct answer: B — Grant USE CATALOG on analytics and USE SCHEMA on finance to the analyst, since SELECT alone does not include the catalog- and schema-level access needed to reach the table.
- A. Ownership is not required to query a table, and transferring schema ownership to an individual analyst would be an unnecessary and risky change just to fix a read permission. The
SELECTgrant already held on the schema is the relevant privilege for reading data, so ownership is not the missing piece here. - B. Unity Catalog requires
USE CATALOGon the containing catalog andUSE SCHEMAon the containing schema before aSELECTgrant on a lower object can take effect, since these usage privileges control the ability to traverse the namespace. Without them, the analyst cannot reach the table even thoughSELECTis already granted. - C.
MODIFYgrants write access such as inserting or updating rows; it plays no role in enabling read-onlySELECTqueries and would not resolve a query failure caused by missing navigation privileges. - D. Privileges granted on a schema do inherit down to the tables it contains, so
SELECTalready coverstransactions. Re-grantingSELECTdirectly on the table would not add anything, since the missing privileges areUSE CATALOGandUSE SCHEMA, notSELECTitself.
Sources1
4.ALL PRIVILEGES and BROWSE
ALL PRIVILEGES is a shorthand that covers every applicable privilege for the object type. On a table it covers SELECT, MODIFY and APPLY TAG. On a volume it covers READ VOLUME, WRITE VOLUME and APPLY TAG. On a schema or catalog it covers all the privileges at that level. It has fixed exclusions: MANAGE, READ METADATA, EXTERNAL USE SCHEMA and EXTERNAL USE LOCATION are not part of it. MANAGE is the privilege that controls access to an object: it lets a user who doesn't own the object manage privileges on it, transfer its ownership and delete it. A user with ALL PRIVILEGES on a table can therefore read and write it but cannot grant it to anyone else.
BROWSE makes data discoverable without opening it to anyone. It is granted on a catalog and applies to every object in it. A user with BROWSE can see that an object exists and view its name, description and tags. They can also request access, and none of this needs USE CATALOG or USE SCHEMA. They still can't read a single row. Granting BROWSE on catalogs to the All account users group is the recommended way to let the whole organization find datasets and ask for the ones it needs.
Grant BROWSE on the catalog to All account users. Grant USE CATALOG, USE SCHEMA and SELECT only to the sales group. BROWSE shows metadata and lets users request access, but it gives no data access.
Checkpoint 5 of 8· Check yourself
A finance team lead holds USE CATALOG and USE SCHEMA on the path to finance.core.ledger, plus ALL PRIVILEGES on the table itself. They try to grant SELECT on the table to a new colleague. What happens?
On a table, ALL PRIVILEGES covers SELECT, MODIFY and APPLY TAG. MANAGE is one of its fixed exclusions, so the lead can use the table but cannot grant access to it. BROWSE only makes objects discoverable and has nothing to do with granting.
“ALL PRIVILEGES does not include the EXTERNAL USE SCHEMA, EXTERNAL USE LOCATION, MANAGE, or READ METADATA privileges.”Source: docs.databricks.com
Sources1
5.Granting, revoking and inspecting privileges
Privileges are managed with SQL in a notebook or the SQL editor, or on an object's Permissions tab in Catalog Explorer. The CLI and Terraform provider work too. The SQL forms are GRANT <privilege-type> ON <securable-type> <securable-name> TO <principal> and REVOKE ... FROM <principal>. Group and user names that contain special characters, such as a hyphen, go in backticks. The example below gives a group the full path it needs to create tables in main.default.
GRANT CREATE TABLE ON SCHEMA main.default TO `finance-team`;
GRANT USE SCHEMA ON SCHEMA main.default TO `finance-team`;
GRANT USE CATALOG ON CATALOG main TO `finance-team`;REVOKE makes sure a privilege is absent rather than checking that it was there. It succeeds even if the privilege was never granted, so a cleanup script can run it repeatedly without errors.
REVOKE CREATE TABLE ON SCHEMA main.default FROM `finance-team`;SHOW GRANTS ON <securable-type> <securable-name> lists who holds what. Add a principal before ON to list only that principal's grants. How much you see depends on your own standing. Metastore admins, the object's owner, the owner of its catalog or schema, and users with MANAGE or READ METADATA on it see every grant. Anyone else sees only their own grants.
SHOW GRANTS ON SCHEMA main.default;Checkpoint 6 of 8· Fill the gap
The finance-team group should no longer be able to create tables in main.default. Which keyword completes this statement?
? CREATE TABLE ON SCHEMA main.default FROM `finance-team`;REVOKE ... FROM followed by the principal takes away a privilege that was granted. Unity Catalog has no deny grants because nothing is allowed by default, so removing the grant is how you take the access away. REVOKE also succeeds when the privilege was never granted.
Source: docs.databricks.comSources2
6.Narrowing access inside a single table
A SELECT grant covers the whole table. When different users of the same table should see different rows, use a row filter. A row filter is a SQL user-defined function that Unity Catalog evaluates for each row at query time, and rows where it returns FALSE are left out of the result. Region-based access is the classic case. One sales.transactions table serves the US, EU and APAC analysts, and each analyst sees only their own region's orders. You don't need three copies or three views to maintain.
ALTER TABLE <table_name> SET ROW FILTER <function_name> ON (<column_name>, ...);The function knows who is querying because it can inspect the identity or group memberships of the invoking user. A built-in such as is_account_group_member() returns TRUE when the current user belongs to the named group, so the same function returns different rows to different people. In the example below, each row's dept value is passed in as the group name: a member of the engineering group keeps only the Engineering rows, and a member of the sales group keeps only the Sales rows. A region filter works the same way, comparing each row's region with the groups the analyst belongs to.
CREATE FUNCTION filter_emps(dept STRING) RETURN is_account_group_member(dept);A column mask solves a different problem. It is also a SQL function, but it takes a column's value and returns either the original value or a masked version. Every row still comes back, only with the values altered. Use a mask to hide what a field contains, such as an email address, and a row filter to hide which records a user can see. Table-level filters and masks are set per table by the table owner. For applying the same rule across many tables, ABAC policies are the recommended approach, as part of the wider PII practices in PII protection and ownership best practices.
Checkpoint 7 of 8· Match them up
Match each control to what a user querying sales.transactions ends up seeing, or to where the control applies.
Tap a term, then the definition that fits it.
A SELECT grant opens the whole table. A row filter hides which records a user can see, and a column mask hides what a field contains. Filters and masks are set on each table separately, so ABAC policies are the recommended way to apply the same rule across many tables.
“View all owner-visible metadata for an object, including permissions, row filters, column masks, and ABAC policies”Source: docs.databricks.com
Checkpoint 8 of 8· Exam question
The sales.transactions table contains order records for customers across the US, EU, and APAC regions. Regional sales analysts should each see only the orders belonging to their own region when they query this single table, without the team maintaining three separate copies of the data. Which Unity Catalog feature should the engineer apply?
Correct answer: A — Apply a row filter function to sales.transactions with ALTER TABLE ... SET ROW FILTER, so rows are excluded whenever the function evaluates to false for the querying user's region.
- A. A row filter is a SQL user-defined function attached to the table that Unity Catalog evaluates per row at query time, excluding any row where the function returns false for the current user; this is the built-in mechanism for exactly this per-region visibility requirement on a single shared table.
- B. A column mask transforms or redacts the value of a specific column rather than removing entire rows, so it would hide or alter region-related values instead of restricting which order rows an analyst can see, which does not match the stated goal.
- C. Duplicating the table into three separate filtered views could technically work but directly contradicts the requirement to avoid maintaining multiple copies of the data, and it does not scale as regions or analysts change.
- D. Unity Catalog does not automatically infer row-level scoping from a group's name or an assumed region tag; without an explicit row filter attached to the table, granting plain
SELECTwould expose all regions' rows to every analyst group equally.
Sources
(5)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/permissions-conceptsOfficial docs
“Access control in Unity Catalog works by granting privileges, such as SELECT, MODIFY, or USE SCHEMA, on these securable objects.”
↩︎ Privileges are granted on securable objects“A user or group must be explicitly granted a privilege to perform an action.”
↩︎ Privileges are granted on securable objects“MODIFY is a composite privilege, and INSERT, UPDATE, and DELETE (Beta) are its children.”
↩︎ Privileges are granted on securable objects“Having only the SELECT privilege on a table is not sufficient to read it if you lack USE CATALOG or USE SCHEMA”
↩︎ SELECT needs USE CATALOG and USE SCHEMA“this prevents table owners from granting access outside approved boundaries.”
↩︎ SELECT needs USE CATALOG and USE SCHEMA“The MANAGE privilege allows users to manage privileges on, transfer ownership of, and delete an object without being the owner.”
↩︎ SELECT needs USE CATALOG and USE SCHEMA“When you grant a privilege on a container object, that privilege automatically applies to all current and future child objects.”
↩︎ Grants on catalogs and schemas flow down“granting SELECT on a catalog allows users to read all tables in that catalog (with appropriate usage privileges)”
↩︎ Grants on catalogs and schemas flow down“CREATE TABLE on schema (or catalog if granted at catalog-level)”
↩︎ Grants on catalogs and schemas flow down“ALL PRIVILEGES on a table implies the ability to perform SELECT, MODIFY, and APPLY TAG.”
↩︎ ALL PRIVILEGES and BROWSE“The MANAGE privilege allows users to manage privileges on, transfer ownership of, and delete an object without being the owner.”
↩︎ ALL PRIVILEGES and BROWSE“BROWSE allows users to discover objects and view their metadata without granting access to the underlying data.”
↩︎ ALL PRIVILEGES and BROWSE“Databricks recommends granting BROWSE on catalogs to the All account users group to make data discoverable throughout your organization.”
↩︎ ALL PRIVILEGES and BROWSE“Generally, usage privileges are a prerequisite to interact with an object and its child objects in the hierarchy.”
↩︎ Key concept“All three are required.”
↩︎ Exam trap 1“ALL PRIVILEGES does not include the EXTERNAL USE SCHEMA, EXTERNAL USE LOCATION, MANAGE, or READ METADATA privileges.”
↩︎ Exam trap 2“Create a schema in a catalog | USE CATALOG on catalog, CREATE SCHEMA on catalog”
↩︎ Checkpoint“For example, granting SELECT on a catalog allows users to read all tables in that catalog (with appropriate usage privileges).”
↩︎ Checkpoint“ALL PRIVILEGES does not include the EXTERNAL USE SCHEMA, EXTERNAL USE LOCATION, MANAGE, or READ METADATA privileges.”
↩︎ Checkpoint - 2.
“Initially, users have no access to data in a metastore.”
↩︎ Privileges are granted on securable objects“Object owners have all privileges on that object, including the ability to grant privileges to other principals.”
↩︎ SELECT needs USE CATALOG and USE SCHEMA“A REVOKE statement succeeds even if the specified privileges were not granted in the first place.”
↩︎ Granting, revoking and inspecting privileges“If you do not have the above permissions, you can view only your own grants on the object.”
↩︎ Granting, revoking and inspecting privileges“You must enclose users, service principals, and group names that include special characters in backticks”
↩︎ Granting, revoking and inspecting privileges - 3.
“Rows where the function returns FALSE are excluded from query results.”
↩︎ Narrowing access inside a single table“The mask is a SQL UDF that takes the column value as input and returns the original value or a masked version.”
↩︎ Narrowing access inside a single table“For example, you can restrict users to records from a specific region, department, or account.”
↩︎ Narrowing access inside a single table“For consistent row filtering across many tables, use ABAC policies instead.”
↩︎ Narrowing access inside a single table - 4.
“the function can inspect the identity or group memberships of the invoking user”
↩︎ Narrowing access inside a single table
Also cited
- https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/privileges-referenceOfficial docs
“View all owner-visible metadata for an object, including permissions, row filters, column masks, and ABAC policies”
↩︎ Checkpoint