CertSafari
    Databricks Certified Data Engineer Professional - October 9 onwards· Lessons

    Domain 6 · Lesson 33/45

    Least-privilege grants in Unity Catalog and workspace ACLs

    Apply least-privilege access control lists (ACLs) to secure Unity Catalog securable objects and workspace resources.

    17 min read
    1.6% of exam
    6 sources
    Published 22 Oct 2026
    Docs as of 17 Oct 2026

    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.

    Grants required for common operations
    OperationRequired privileges
    Read data from a table or viewUSE CATALOG on catalog, USE SCHEMA on schema, SELECT on table or view
    Write data to a tableUSE CATALOG on catalog, USE SCHEMA on schema, MODIFY on table
    Create a table in a schemaUSE CATALOG on catalog, USE SCHEMA on schema, CREATE TABLE on schema
    Execute a functionUSE CATALOG on catalog, USE SCHEMA on schema, EXECUTE on function
    Read files from a volumeUSE 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?

    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?

    Sources123

    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:

    Grants that let finance-team create tables in main.default and nowhere elsesql
    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_catalog adds create, write and every other catalog-level privilege on every schema in the catalog.
    • MODIFY on 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?

    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)

    0 of 3 selected

    Sources231

    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.

    What each broad grant hands over
    GrantWhat it addsWho should get it
    ALL PRIVILEGES on a schemaAll schema-level privileges, but not MANAGE, READ METADATA, EXTERNAL USE SCHEMA or EXTERNAL USE LOCATIONA team that owns the data in that schema
    MANAGE on an objectManage privileges, transfer ownership, rename and drop the objectSomeone who administers access without owning the object
    OwnershipAll privileges on the object, plus the right to grant them; on a container, management of every child objectOne 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.

    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?

    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?

    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.

    Job permission levels, lowest to highest
    PermissionGrantsGive it to
    CAN VIEWView job run results, including details, history and statusPeople who monitor runs
    CAN MANAGE RUNTrigger and cancel job runsOperators who start, stop or restart runs
    CAN MANAGEEdit the job definition, including configuration, tasks and permissions; pause and resume the scheduleOnly people trusted to change production code
    IS OWNERThe identity used for Run as by defaultOne 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?

    Sources45

    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.

    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?

    Sources561

    Sources

    (6)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 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. 2.
      “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. 3.
      “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. 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. 5.
      “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. 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

    Spotted a mistake, or was something unclear? Tell us.