CertSafari
    Databricks Certified Data Analyst Associate· Lessons

    Domain 9 · Lesson 39/39

    Table ownership, MANAGE and PII protection in Unity Catalog

    Apply best practices for storage and management to ensure data security, including table ownership and PII protection.

    19 min read
    2.67% of exam
    8 sources
    Published 22 Oct 2026
    Docs as of 17 Oct 2026

    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?

    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?

    Sources123

    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.

    Transferring ownership of a table to a groupsql
    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.

    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?

    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?

    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?

    Sources21

    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.

    Three meanings of manage in Unity Catalog
    TermMeaningApplies to
    "Managed by Unity Catalog"Unity Catalog governs access, auditing and lineage for the objectAll registered objects, including external tables and volumes
    Managed table or managed volumeUnity Catalog also controls the storage location and file lifecycleTables and volumes only
    MANAGE privilegeAssign or revoke privileges on, transfer ownership of, and delete an object without being the ownerAll 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.

    Sources423

    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?

    Sources24

    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 CASE expressions 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?

    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.

    Body of an ABAC column mask policysql
    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.

    Choosing between table-level controls, ABAC and dynamic views
    ApproachApplies toManaged usingBest used for
    Table-level row filters and column masksIndividual tables and columnsALTER TABLE by the table owner or a user with MANAGETable-specific logic
    ABAC policiesTables and columns matched by tag conditionsCREATE POLICY attached to a catalog, schema, or table by its owner or a user with MANAGECentralized rules applied automatically across many tables
    Dynamic viewsA view built from one or more base tablesSQL logic in the view definitionSharing 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.

    Sources6758

    Sources

    (8)

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

    1. 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. 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. 3.
      “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. 4.
      “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. 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. 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. 7.
      “Databricks Data Classification uses an agent to automatically classify and tag tables in your catalog.”
      ↩︎ ABAC policies and choosing a protection method

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