What you will be able to do
- Work out the full set of grants (usage privileges plus the action privilege) that a principal needs to read, write or run a Unity Catalog object
- Give a read-only group access to one schema without exposing the rest of the catalog
- Explain what ALL PRIVILEGES, MANAGE and ownership each hand over, and why read-only consumers should get none of them
- Choose the lowest workspace ACL level (CAN VIEW, CAN MANAGE RUN, CAN MANAGE, IS OWNER) for jobs, notebooks, folders and compute
- Set a production job's Run as identity to a service principal and grant Unity Catalog privileges to that principal
Key concept
Deny by default, grant explicitly — A principal can do nothing in Unity Catalog until it is granted a privilege for that exact action. Every grant you add widens access, so least privilege means granting the narrowest privilege on the lowest object that still does the job.
1.Reading one table takes three grants
Unity Catalog starts from zero. A new user can't see any data in a metastore, and access comes only from privileges granted on securable objects: the metastore, catalogs, schemas, and the tables, views, volumes and functions inside them. Least privilege in Unity Catalog means picking the smallest set of those grants that lets a workload or a team do its job.
Every operation on a table, view, volume or function needs three privileges together: USE CATALOG on the parent catalog, USE SCHEMA on the parent schema, and the privilege for the action itself, such as SELECT, MODIFY or EXECUTE. You need all three. If the analyst above gets a permission-denied error, the fix is to grant the two usage privileges they're missing. Re-issuing the SELECT grant won't help, and swapping it for MODIFY would hand them write access.
| 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 |
| Execute a function | USE CATALOG on catalog, USE SCHEMA on schema, EXECUTE on function |
| Read files from a volume | USE CATALOG on catalog, USE SCHEMA on schema, READ VOLUME on volume |
Usage privileges don't give access to any data. USE SCHEMA only lets a principal interact with objects inside the schema, and reading still needs SELECT. These privileges act as a gate that higher-level administrators control. A table owner can grant SELECT on their table to anyone, but the grantee still can't get past the gate unless a catalog or schema owner, or someone with MANAGE, grants the usage privileges. This stops table owners from sharing data outside the boundaries that administrators have approved.
Checkpoint 1 of 9· Check yourself
A data engineer with no grants in the sales catalog needs to create new tables in the sales.staging schema. Which set of grants follows least privilege and still lets them do it?
Creating a table follows the same three-part rule as reading one: usage on the parent catalog, usage on the schema, and the action privilege, here CREATE TABLE on the schema. MODIFY is for writing data, and a catalog-level grant is wider than this job needs.
“Create a table in a schema | USE CATALOG on catalog, USE SCHEMA on schema, CREATE TABLE on schema”Source: docs.databricks.com
Checkpoint 2 of 9· Exam question
A data engineer runs SELECT * FROM sales.gold.transactions as user analyst_maria. An admin has granted SELECT on the table sales.gold.transactions directly to analyst_maria, but the query still fails with a permission-denied error, and analyst_maria has no other grants on the sales catalog or the gold schema. What is the most likely cause, and what should the admin grant to fix it?
Correct answer: A — The SELECT grant alone is insufficient because reaching a table also requires USE CATALOG on sales and USE SCHEMA on sales.gold; granting both usage privileges to analyst_maria resolves the failure.
- A. Unity Catalog's securable-object hierarchy requires usage privileges on every containing catalog and schema before a privilege granted on a child object, such as
SELECTon a table, takes effect. AddingUSE CATALOGonsalesandUSE SCHEMAonsales.goldsupplies the missing path-level access without widening the analyst's rights beyond that one table. - B. This is incorrect because
SELECTapplies equally to managed tables, external tables, and views in Unity Catalog.MODIFYgrants insert, update, and delete rights and would not fix a read-only query failure, and it would also over-grant write access the analyst does not need. - C.
WITH GRANT OPTIONonly allows the grantee to re-grant the same privilege to other principals; it does not add coverage for parent catalogs or schemas and would not change whether the query itself succeeds. - D. Unity Catalog grants take effect immediately once issued; there is no propagation delay to wait out. The failure here is caused by missing usage privileges on the object hierarchy, not by replication lag.
2.Scoping a read-only team to one schema
Grant at the lowest level that covers the need. Under Unity Catalog permission inheritance, a privilege granted on a catalog or schema applies to every current and future child object. The word "future" is where catalog-level grants go wrong. A SELECT on a catalog that looks fine today also covers every table anyone creates in it next quarter, and no new grant is ever issued for those tables. A schema-level grant limits that growth to one schema.
Here's how that looks for a BI group that needs read-only access to dev_catalog.reporting and nothing else. The group needs USE CATALOG on dev_catalog, which lets it reach into the catalog but doesn't open any other schema. It needs USE SCHEMA on dev_catalog.reporting. It needs SELECT on that schema, which covers every table and view in it now and later. The same three-part pattern appears in the grant example below, which gives a group the right to create tables in one schema:
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`;Each tempting shortcut gives the group more than it should have:
ALL PRIVILEGES ON CATALOG dev_catalogadds create, write and every other catalog-level privilege on every schema in the catalog.MODIFYon the schema adds insert, update and delete, which a read-only team doesn't need.- Transferring ownership of the schema gives the group every privilege on it, including the right to grant privileges to others. A read-only team should never hold that.
To check the result, run SHOW GRANTS ON SCHEMA dev_catalog.reporting, or open the object's Permissions tab in Catalog Explorer. To take a privilege away, use REVOKE ... FROM. A REVOKE succeeds even if the privilege was never granted, so a cleanup script can run it safely without checking first.
Checkpoint 3 of 9· Check yourself
Next quarter, new tables will land in dev_catalog.reporting. A BI group needs read-only access to that schema, including those future tables, and to nothing else in dev_catalog. Which grant set meets that need with the least privilege?
A SELECT granted on the schema is inherited by the current and future tables in it, so the tables added next quarter are covered. A catalog-level SELECT reaches the other schemas in the catalog. Ownership adds management rights and MODIFY adds write rights, which a read-only team should not hold.
“When you grant a privilege on a container object, that privilege automatically applies to all current and future child objects.”Source: docs.databricks.com
Checkpoint 4 of 9· Exam question
The platform team is onboarding a new BI team that needs read-only access to explore data in the dev_catalog.reporting schema only, and nothing else in the metastore. Which of the following GRANT statements, issued together for the group bi_readers, correctly implement least-privilege access for this requirement? (Select all that apply.)(Select 3)
Correct answers: A, B, C — GRANT USE CATALOG ON CATALOG dev_catalog TO bi_readers; — required so members of the group can reference objects inside the catalog before any deeper schema- or table-level grant can take effect.; GRANT USE SCHEMA ON SCHEMA dev_catalog.reporting TO bi_readers; — required so members of the group can reference objects inside that specific schema without gaining access to the rest of the catalog.; GRANT SELECT ON SCHEMA dev_catalog.reporting TO bi_readers; — grants read access to every current and future table and view in that schema without exposing any other schema in the catalog.
- A. Usage on the containing catalog is a prerequisite for reaching any schema or table inside it, and granting only
USE CATALOGdoes not by itself expose data, so it is a correctly scoped part of a least-privilege setup. - B. Usage on the specific schema narrows the group's reach to that one schema rather than every schema in the catalog, which is exactly the boundary a least-privilege design for a single reporting team needs.
- C. A schema-level
SELECTgrant covers current and future tables and views indev_catalog.reportingautomatically, giving the BI team read access to everything they need for exploration without a separate grant per table. - D. This over-grants access: it gives the group create, modify, and administrative rights across every schema in
dev_catalog, far beyond the read-only access to one schema that the BI team requires. - E.
MODIFYgrants write access (insert, update, delete) on the schema's tables, which contradicts the read-only exploration requirement and is unnecessary for a BI team that only queries data. - F. Transferring ownership hands the group full administrative control, including the ability to grant and revoke other principals' access and drop objects, which is a much broader right than the read-only access the requirement calls for.
3.ALL PRIVILEGES, MANAGE and ownership
ALL PRIVILEGES is a shorthand for every privilege that applies to an object type. On a table it covers SELECT, MODIFY and APPLY TAG, and on a schema it covers all schema-level privileges, including USE SCHEMA, CREATE TABLE and the SELECT that inherits down to the schema's tables. It deliberately leaves out four privileges: EXTERNAL USE SCHEMA, EXTERNAL USE LOCATION, MANAGE and READ METADATA. So the data engineers above can read, write and create objects in finance.reports, but they can't grant privileges on it, transfer its ownership or drop it. Those rights come with MANAGE, which has to be granted separately.
MANAGE lets a principal manage privileges on an object, transfer its ownership and delete it, all without being the owner. It is close to ownership but not the same thing. Every securable object has exactly one owner. The owner holds all privileges on the object and can grant MANAGE to others. Owning a catalog or schema also lets you manage every child object inside it, even ones you don't own. Grant these powers only to people who should decide who gets access. Data consumers shouldn't hold them.
Some privileges are composites made up of narrower child privileges. You can grant a child on its own to hand over part of a composite's power. MANAGE has two children: READ METADATA, which gives read-only visibility into permissions and policies, and MANAGE ACCESS CONTROL. MODIFY has three children: INSERT, UPDATE and DELETE, which are in Beta. Composites and children are granted and revoked independently. If a group was granted MODIFY and was also granted INSERT explicitly, revoking MODIFY leaves the group able to insert. An access review has to look for both.
| Grant | What it adds | Who should get it |
|---|---|---|
| ALL PRIVILEGES on a schema | All schema-level privileges, but not MANAGE, READ METADATA, EXTERNAL USE SCHEMA or EXTERNAL USE LOCATION | A team that owns the data in that schema |
| MANAGE on an object | Manage privileges, transfer ownership, rename and drop the object | Someone who administers access without owning the object |
| Ownership | All privileges on the object, plus the right to grant them; on a container, management of every child object | One accountable principal per object |
Checkpoint 5 of 9· Match them up
Match each grant to the power it gives on a Unity Catalog object
Tap a term, then the definition that fits it.
ALL PRIVILEGES leaves out MANAGE and READ METADATA. So permission management and dropping come from MANAGE or ownership, and READ METADATA hands over only the read-only part of MANAGE.
“ALL PRIVILEGES does not include the EXTERNAL USE SCHEMA, EXTERNAL USE LOCATION, MANAGE, or READ METADATA privileges.”Source: docs.databricks.com
Checkpoint 6 of 9· Check yourself
An access review finds that the etl_writers group holds MODIFY on sales.gold.orders and also an explicit INSERT grant on the same table. You run REVOKE MODIFY ON TABLE sales.gold.orders FROM etl_writers. What write access does the group have afterwards?
Composite and child privileges are granted and revoked independently. The INSERT that was granted explicitly survives the revoke of MODIFY, so an access review has to look for both and revoke both.
“revoking a composite privilege does not revoke any child privilege that was granted explicitly.”Source: docs.databricks.com
Checkpoint 7 of 9· Exam question
A metastore admin runs GRANT ALL PRIVILEGES ON SCHEMA finance.reports TO data_engineers; to simplify onboarding a team. Which privilege is NOT included in this grant, and must be granted separately if the team needs it?
Correct answer: A — MANAGE, which controls the ability to change permissions, transfer ownership, or delete the schema, and is intentionally excluded from ALL PRIVILEGES grants.
- A.
ALL PRIVILEGESgrants every applicable privilege on the schema except a small set of administrative privileges, andMANAGE(along withREAD METADATA,EXTERNAL USE SCHEMA, andEXTERNAL USE LOCATION) is deliberately excluded so that broad data grants do not automatically hand out administrative control. - B.
SELECTis a standard data-access privilege and is included whenALL PRIVILEGESis granted on a schema, so it does not need to be granted separately. - C.
CREATE TABLEis included whenALL PRIVILEGESis granted on a schema, since it is one of the ordinary creation privileges the grant is meant to bundle together. - D.
USE SCHEMAis included whenALL PRIVILEGESis granted, since usage on the schema itself is one of the baseline privileges the bundled grant covers.
Sources2
4.ACLs on jobs, notebooks, folders and compute
Unity Catalog grants control data. Workspace objects such as jobs, notebooks, folders, pipelines and compute have their own access control lists (ACLs), where each permission level adds abilities on top of the one below it. Workspace admins have CAN MANAGE on every object in their workspace, and you automatically get CAN MANAGE on any object you create. Applying least privilege here means moving everyone else to the lowest level that covers their work.
| Permission | Grants | Give it to |
|---|---|---|
| CAN VIEW | View job run results, including details, history and status | People who monitor runs |
| CAN MANAGE RUN | Trigger and cancel job runs | Operators who start, stop or restart runs |
| CAN MANAGE | Edit the job definition, including configuration, tasks and permissions; pause and resume the schedule | Only people trusted to change production code |
| IS OWNER | The identity used for Run as by default | One user or service principal; never a group |
Notebooks and files follow the same pattern. CAN VIEW lets a user read and comment, CAN RUN lets them attach and run the notebook interactively, CAN EDIT lets them change it, and only CAN MANAGE lets them change its permissions. In the Permissions API the view level is called CAN READ. Pipelines go from CAN VIEW to CAN RUN (start and stop updates) to CAN MANAGE (edit settings, delete). The easiest way to manage notebook permissions at scale is with folders, because every object in a folder inherits the folder's permissions. If you grant CAN RUN on a folder of production notebooks, every notebook added to that folder later is covered too, so treat a folder grant with the same care as a schema grant.
Compute ACLs need extra care because of logs. CAN ATTACH TO lets a user attach a notebook, CAN RESTART adds starting and terminating, and only CAN MANAGE can edit, resize or attach libraries. Secrets are not redacted from a classic cluster's driver stdout and stderr. For that reason, on dedicated or standard access mode, driver logs are visible only to users with CAN MANAGE by default. Setting spark.databricks.acl.needAdminPermissionToViewLogs false widens that to lower permission levels, so leave the default unless you have a reason to change it.
Checkpoint 8 of 9· Check yourself
Operators on your team must be able to start, restart and terminate a classic cluster that runs in dedicated access mode. Jobs on this cluster can print secrets to the driver's stdout. The operators must not be able to read those logs. Which setup meets this with least privilege?
CAN RESTART adds starting and terminating on top of CAN ATTACH TO. On dedicated or standard access mode, driver logs are visible only to CAN MANAGE by default. Leaving the property at its default keeps secrets in the logs hidden from operators. Setting it to false would expose the logs, and CAN MANAGE would also let operators edit the cluster and change its permissions.
“Spark driver logs are viewable only by users with CAN MANAGE permission on job compute and all-purpose compute on dedicated or standard access mode”Source: docs.databricks.com
5.Running production jobs as a service principal
A job runs with the Unity Catalog privileges of its Run as identity, not those of the person who triggered it. Clicking Run Now doesn't make the job run as you. It uses the Run as identity, which is the job owner unless someone has changed it. This matters because the job creator becomes IS OWNER by default. Leave that unchanged and a production pipeline reads and writes with everything one engineer happens to be able to access, and it breaks when that person's access changes.
No. The run uses etl_sp's privileges, because Run Now takes on the Run as identity, not the identity of the person who clicked it. The operator's own lack of SELECT doesn't matter, which is why CAN MANAGE RUN is safe to give operators who should never query the data themselves.
Setting a service principal as the Run as identity separates a workload's access from any one person's. To change Run as, you need CAN MANAGE or IS OWNER on the job. You can choose yourself or any service principal on which you hold the Service Principal User entitlement. If the job is defined in a bundle, a project that declares jobs and other Databricks resources as code so they can be version-controlled and deployed, run_as sits in the job's own entry under resources.jobs, or in the bundle's top-level and target run_as mappings, which accept only user_name or service_principal_name.
Then grant the service principal exactly what the job touches and nothing more. In a GRANT statement, a service principal is identified by its applicationId, written in backticks if it contains special characters. For example, a job that reads bronze.orders and writes silver.orders needs USE CATALOG and USE SCHEMA on the parents of both tables, SELECT on the source and MODIFY on the target. It doesn't need ALL PRIVILEGES, a catalog-wide SELECT or ownership of any schema. The people around the job then get workspace ACLs only: CAN MANAGE RUN for operators and CAN VIEW for anyone watching run history.
Checkpoint 9 of 9· Check yourself
Your nightly job reads main.bronze.orders and writes main.silver.orders, and its Run as identity is the service principal etl_sp. Operators trigger it with Run Now. Which grants follow least privilege and let the run succeed?
The run uses etl_sp's privileges, not the operator's, so etl_sp needs the usage privileges on both parents plus SELECT on the source and MODIFY on the target. ALL PRIVILEGES on a schema and a catalog-wide SELECT both give more than the job touches.
“Write data to a table | USE CATALOG on catalog, USE SCHEMA on schema, MODIFY on table”Source: docs.databricks.com
Sources
(6)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Initially, users have no access to data in a metastore.”
↩︎ Reading one table takes three grants“Object owners have all privileges on that object, including the ability to grant privileges to other principals.”
↩︎ Scoping a read-only team to one schema“A REVOKE statement succeeds even if the specified privileges were not granted in the first place.”
↩︎ Scoping a read-only team to one schema“service principal (represented by its applicationId value)”
↩︎ Running production jobs as a service principal - 2.https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/permissions-conceptsOfficial docs
“All three are required.”
↩︎ Reading one table takes three grants“this prevents table owners from granting access outside approved boundaries”
↩︎ Reading one table takes three grants“When you grant a privilege on a container object, that privilege automatically applies to all current and future child objects.”
↩︎ Scoping a read-only team to one schema“ALL PRIVILEGES does not include the EXTERNAL USE SCHEMA, EXTERNAL USE LOCATION, MANAGE, or READ METADATA privileges.”
↩︎ ALL PRIVILEGES, MANAGE and ownership“The MANAGE privilege allows users to manage privileges on, transfer ownership of, and delete an object without being the owner.”
↩︎ ALL PRIVILEGES, MANAGE and ownership“revoking a composite privilege does not revoke any child privilege that was granted explicitly”
↩︎ ALL PRIVILEGES, MANAGE and ownership“A user or group must be explicitly granted a privilege to perform an action.”
↩︎ Key concept“Having only the SELECT privilege on a table is not sufficient to read it”
↩︎ Exam trap 1“ALL PRIVILEGES does not include the EXTERNAL USE SCHEMA, EXTERNAL USE LOCATION, MANAGE, or READ METADATA privileges.”
↩︎ Exam trap 2“revoking a composite privilege does not revoke any child privilege that was granted explicitly”
↩︎ Exam trap 3“Having only the SELECT privilege on a table is not sufficient to read it”
↩︎ Prediction“Create a table in a schema | USE CATALOG on catalog, USE SCHEMA on schema, CREATE TABLE on schema”
↩︎ Checkpoint“revoking a composite privilege does not revoke any child privilege that was granted explicitly.”
↩︎ Checkpoint“Write data to a table | USE CATALOG on catalog, USE SCHEMA on schema, MODIFY on table”
↩︎ Checkpoint - 3.https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/privileges-referenceOfficial docs
“Required to interact with any object inside a schema. Does not itself grant access to data.”
↩︎ Reading one table takes three grants“You can grant these privileges at the schema level to apply them to current and future objects within the schema.”
↩︎ Scoping a read-only team to one schema - 4.
“Users automatically have the CAN MANAGE permission for objects that they create.”
↩︎ ACLs on jobs, notebooks, folders and compute“Objects in a folder inherit all permissions settings of that folder.”
↩︎ ACLs on jobs, notebooks, folders and compute“Spark driver logs are viewable only by users with CAN MANAGE permission on job compute”
↩︎ ACLs on jobs, notebooks, folders and compute“Spark driver logs are viewable only by users with CAN MANAGE permission on job compute and all-purpose compute on dedicated or standard access mode”
↩︎ Checkpoint - 5.https://docs.databricks.com/aws/en/jobs/privilegesOfficial docs
“Only grant Can Manage or Is Owner privileges to users trusted to modify production code.”
↩︎ ACLs on jobs, notebooks, folders and compute“assume the permissions of the Run as user (the owner, by default) and not the user who issued Run Now”
↩︎ Running production jobs as a service principal“To change the Run as setting, you must have the CAN MANAGE or IS OWNER permission on the job.”
↩︎ Running production jobs as a service principal“any service principal in the workspace on which you have the Service Principal User entitlement”
↩︎ Running production jobs as a service principal“The top-level and target run_as mappings accept only user_name or service_principal_name.”
↩︎ Running production jobs as a service principal“Set group_name in the job resource's run_as mapping:”
↩︎ Running production jobs as a service principal“assume the permissions of the Run as user (the owner, by default) and not the user who issued Run Now”
↩︎ Exam trap 4 - 6.
“The pipeline is defined and deployed through a bundle, not hand-clicked into existence in the UI, so it can be code-reviewed and version-controlled.”
↩︎ Running production jobs as a service principal