# Unity Catalog explained: namespaces, privileges, credential vending and metric views

Unity Catalog is the governance layer under every Databricks table, volume and model. This guide walks through its object model, the three checks behind every read, managed versus external storage, credential vending and the new metric views.

Every table, file volume, function and model in a modern Databricks workspace sits inside Unity Catalog. It decides who can see an object, who can read or change its data, and which short-lived storage credentials an engine receives to do so. When a query fails with a permission error, or a team asks why an analyst can see a table name but not its rows, the answer is almost always in Unity Catalog's privilege rules.

Unity Catalog exists in two forms. Databricks runs a managed version inside its platform. There is also an open-source Unity Catalog project, hosted by the LF AI and Data Foundation, with an OpenAPI specification and an Apache 2.0 server you can run yourself. The two share the same core ideas: a three-level namespace, privileges that inherit down the tree, and credential vending. This article teaches those ideas with worked examples, and points out where the open-source documentation spells out rules precisely.

## What happened

### Unity Catalog 0.6.0 arrives with a Spark 4.2 connector (20 August 2026)

The open-source Unity Catalog Python client 0.6.0 was published on PyPI on 20 August 2026. The project's documentation says metric views require Apache Spark 4.2 or later, because the `CREATE VIEW ... WITH METRICS` statement was introduced in Spark 4.2, together with the Unity Catalog 0.6.0 or later Spark 4.2 connector. Metric views are not available on Spark 4.0 or 4.1.

### Unity Catalog 0.7.0 client release (11 October 2026)

The 0.7.0 client followed on 11 October 2026, and the metric view walkthrough in the documentation now launches Spark with the `unitycatalog-spark_4.2_2.13:0.7.0` connector. The current server documentation also describes stricter privilege checks, enabled by default through a temporary migration setting, `server.authorization.strict-privilege-checks`. Among other things, `MODIFY` no longer substitutes for `SELECT` when a caller asks for table details or listings.

## The object model: a tree you can reason about

Unity Catalog organises everything in a tree. Learn the tree and most behaviour becomes predictable.

- **Metastore**: the top container, usually one per region in Databricks. It holds catalogs and storage settings.
- **Catalog**: the first part of a three-part name. Teams often use catalogs for environments (`dev`, `prod`) or business units.
- **Schema**: the second part, a group of related objects such as `sales` or `finance`.
- **Securable objects inside a schema**: tables and views, volumes for files, functions, and registered models.

A table is addressed as `catalog.schema.table`, for example `main.sales.orders`. Think of it like a postal address: country, city, street. A letter only arrives if every level of the address is valid and reachable.

Outside the tree sit the objects that connect Unity Catalog to cloud storage: **storage credentials**, which wrap a cloud identity, and **external locations**, which pair a storage path with a credential.

### Managed versus external

| Aspect | Managed table or volume | External table or volume |
|---|---|---|
| Who chooses the storage path | Unity Catalog, under managed storage | You, under a registered external location |
| What `DROP` does | Removes metadata and, after a retention period on Databricks, the data | Removes metadata only; files stay |
| Typical format | Delta Lake (the open-source server rejects non-Delta managed tables) | Delta, Parquet, CSV, JSON, Avro, ORC and others |
| Best for | Tables your pipelines fully own | Data shared with other systems or written by other tools |

The open-source documentation is explicit on one point: a `CREATE TABLE` without a `LOCATION` fails with "Unity Catalog does not support non-Delta managed table" if the format is not Delta. Volumes, by contrast, register non-tabular data such as JSON files, text files or Lance datasets so they can be governed like tables.

## How privileges work

Unity Catalog uses explicit grants. Nobody except the owner or an administrator can do anything with an object until they are granted a privilege. Three rules matter most.

### Rule 1: grants inherit downward

A privilege granted on a catalog or schema applies to the matching objects below it. The documentation gives the example that catalog `SELECT` applies to the tables in that catalog. This is how you grant read access to a whole schema in one statement instead of one grant per table.

### Rule 2: every level of the path must be usable

To read a table, a principal needs all three of these:

| Object | Required |
|---|---|
| Containing catalog | `USE CATALOG` or ownership of the catalog |
| Containing schema | `USE SCHEMA` or ownership of the schema |
| The table | `SELECT` (granted directly or inherited) or ownership of the table |

The usage privileges do not let anyone read data by themselves. They act like the doors of a building. `SELECT` is the key to the room, but you still need to get through the front door and the corridor.

The open-source documentation adds two sharp details. First, metastore administration, parent ownership or `MODIFY` alone does not meet the read requirement for table credentials. Second, read and write credentials additionally require `MODIFY` or table ownership.

### Rule 3: a privilege can only be granted on certain object types

Grants are validated against object types. A few rows of the documented table:

| Privilege | Object types it can be granted on |
|---|---|
| `USE CATALOG`, `CREATE SCHEMA` | Catalog |
| `USE SCHEMA`, `CREATE TABLE`, `CREATE VOLUME`, `CREATE FUNCTION` | Catalog, schema |
| `SELECT`, `MODIFY` | Catalog, schema, table |
| `READ VOLUME`, `WRITE VOLUME` | Catalog, schema, volume |
| `READ FILES`, `WRITE FILES`, `CREATE EXTERNAL TABLE` | External location, storage credential |
| `READ METADATA` | Metastore, catalog, schema, table, function, volume, model, external location, storage credential |

So `USE CATALOG` on a schema is invalid, and the server rejects the whole grant request if any addition is invalid.

### A worked example

An analytics team, `analysts`, should read everything in `main.sales` and nothing in `main.hr`. On Databricks you would write:

```sql
GRANT USE CATALOG ON CATALOG main TO `analysts`;
GRANT USE SCHEMA, SELECT ON SCHEMA main.sales TO `analysts`;
```

Now suppose someone also grants `SELECT` on `main.hr` but forgets `USE SCHEMA` there. Is HR data exposed? We can check the rules with a small model. This Python script encodes the three-check rule and runs as is:

```python
grants = {
    ("catalog", "main"): {"analysts": {"USE CATALOG"}},
    ("schema", "main.sales"): {"analysts": {"USE SCHEMA", "SELECT"}},
    ("schema", "main.hr"): {"analysts": {"SELECT"}},   # no USE SCHEMA
}

def has(p, kind, name, priv):
    return priv in grants.get((kind, name), {}).get(p, set())

def can_read(p, table):
    cat, sch, _ = table.split(".")
    use_cat = has(p, "catalog", cat, "USE CATALOG")
    use_sch = has(p, "schema", f"{cat}.{sch}", "USE SCHEMA")
    select = (has(p, "table", table, "SELECT")
              or has(p, "schema", f"{cat}.{sch}", "SELECT")
              or has(p, "catalog", cat, "SELECT"))
    return use_cat and use_sch and select

print(can_read("analysts", "main.sales.orders"))   # True
print(can_read("analysts", "main.hr.salaries"))    # False
```

The output is `True` then `False`. The stray `SELECT` on `main.hr` is harmless today because `USE SCHEMA` is missing, but it is a loaded gun: the day someone grants `USE SCHEMA` on `main.hr` for another reason, the analysts can read salaries. Audit grants for privileges that only work by accident.

### Seeing names versus reading rows

Teams often want people to discover data without reading it. `BROWSE` (on catalogs and external locations) and `READ METADATA` serve this. The open-source documentation says `READ METADATA` permits full metadata reads and viewing direct grants, but does not permit data access, temporary credentials, writes or permission changes. That is the right privilege for a data catalog search page.

## Credential vending: how engines reach the files

Unity Catalog does not just answer yes or no. When an engine asks to read a table, Unity Catalog checks the privileges above and then returns a short-lived, narrowly scoped cloud credential for that table's storage path. The engine reads the files directly from object storage with that credential.

The sequence is:

1. The engine authenticates as a user or service principal.
2. It asks Unity Catalog for the table: metadata, location and format.
3. Unity Catalog checks `USE CATALOG`, `USE SCHEMA` and `SELECT`.
4. If they pass, it returns a temporary credential limited to that table's path, for reading (or for reading and writing if `MODIFY` or ownership is present).
5. The engine reads Parquet and Delta log files straight from storage, without a long-lived bucket key.

This is why Unity Catalog can govern many engines. The open-source server exposes a Unity Catalog REST API, a UC Delta API (introduced in version 0.5.0 at `/api/2.1/unity-catalog/delta/v1/...`) that supports credential vending and server-side commits for catalog-managed Delta tables, and an Iceberg REST catalog API. The project lists integrations with engines such as Apache Spark, DuckDB, Trino and Daft. Iceberg credentials for UniForm tables remain read-only.

| Access pattern | Who holds the storage secret | Risk if a notebook leaks |
|---|---|---|
| Shared bucket key in each job | Every job and person | Full bucket access for as long as the key lives |
| Instance profile per cluster | Each cluster | Everything the cluster role can reach |
| Unity Catalog credential vending | Unity Catalog only | Short-lived access to the tables the user was allowed to read |

## Metric views: governed business logic

Permissions answer who can read data. Metric views answer what a number means. A metric view is a view-like object, defined in YAML, that declares dimensions (grouping columns) and measures (named aggregations) over a source table or query. Consumers ask for measures with the `measure()` function and group by the dimensions, so the aggregation lives in one governed place instead of being copied into every dashboard.

```sql
CREATE VIEW unity.default.events_metrics
WITH METRICS
LANGUAGE YAML
AS $$
version: "0.1"
source: unity.default.events
filter: cnt > 0
dimensions:
  - name: region
    expr: region
measures:
  - name: total_cnt
    expr: SUM(cnt)
$$;

SELECT region, measure(total_cnt) AS total_cnt
FROM unity.default.events_metrics
GROUP BY region;
```

With the documentation's sample rows `('us', 1), ('us', 2), ('eu', 3)`, this returns `us` with 3 and `eu` with 3. The value is not the arithmetic. It is that a measure such as revenue or active customers now has one definition with one owner and one set of grants, which is what a semantic layer promises. The [lakehouse topic page](/topics/big-data/lakehouse) shows where this layer sits in the wider stack.

## What it means in practice

Unity Catalog turns governance into a tree problem. If you design the tree well, grants stay short and audits stay readable. A common pattern is one catalog per environment and domain, schemas per subject area, and grants to groups at the schema level. Owners should be groups or service principals, not individuals who might leave.

The privilege model also shapes pipelines. A [medallion pipeline](/tools/medallion-architecture) maps neatly onto schemas: engineers get `MODIFY` on bronze and silver, analysts get `SELECT` on gold only. Because credentials are vended per table, a job that writes silver tables cannot accidentally overwrite raw files elsewhere in the bucket.

For catalogs in general, the site's pages on the [data catalog](/tools/data-catalog), [data lineage](/tools/data-lineage) and [Delta Lake](/tools/delta-lake) explain the neighbouring pieces, and the [Databricks tool page](/tools/databricks) covers the wider platform. Iceberg users can compare with [Iceberg cataloging](/tools/iceberg-cataloging).

## What to do now

1. **Draw your tree before you create objects.** Decide what a catalog and a schema mean in your organisation and write it down.
2. **Grant to groups at the schema level.** Use `GRANT USE SCHEMA, SELECT ON SCHEMA` instead of per-table grants wherever the whole schema has one audience.
3. **Make owners groups or service principals.** Individual ownership turns staff changes into access incidents.
4. **Audit for latent grants.** Look for `SELECT` or `MODIFY` granted where the matching `USE CATALOG` or `USE SCHEMA` is missing; they become live as soon as someone adds the usage grant.
5. **Use `BROWSE` or `READ METADATA` for discovery.** Let people find data without reading it, then grant `SELECT` on request.
6. **Prefer managed tables for pipeline-owned data.** Keep external tables for data that other systems write or must keep after a drop.
7. **Remove long-lived bucket keys from jobs.** Move engines to credential vending through Unity Catalog so access follows grants.
8. **Pilot one metric view.** Pick a disputed metric, define it once as a metric view and point one dashboard at it.
9. **Test strict privilege checks before upgrading self-hosted servers.** The open-source setting defaults to the stricter rules, so check service accounts that relied on `MODIFY` to list tables.

## Risks and open questions

**Inheritance cuts both ways.** A single catalog-level `SELECT` exposes every future table in that catalog, including ones created long after the grant.

**Open-source and managed versions differ.** The managed Databricks service includes features such as groups, row filters, column masks and system tables for audit and lineage, while the open-source server documents its own authorization backends (Casbin by default, Open Policy Agent as an option); check which rules apply to your deployment.

**Grant changes may not be instant in self-hosted clusters.** The open-source documentation notes that with multiple server instances, policy refresh is off by default and the poll interval is not a guaranteed revocation deadline.

**Metric views require new engine versions.** They need Spark 4.2 or later and a matching connector, so mixed fleets may see metric views only on some clusters.

**Watch next:** how quickly other engines adopt the metric view syntax, and whether the stricter privilege checks in the open-source server become permanent once the migration setting is removed.

## Frequently asked questions

### Why can I see a table but not query it?

Seeing the table usually means you have `BROWSE`, `READ METADATA` or usage on the parents. Querying needs `USE CATALOG` on the catalog, `USE SCHEMA` on the schema and `SELECT` on the table or a parent. Check all three, not just `SELECT`.

### Does granting SELECT on a catalog give access to all tables?

It gives `SELECT` on every table in that catalog, including future ones, but the user still needs `USE CATALOG` and `USE SCHEMA` on the schemas involved. In practice, catalog-level `SELECT` plus broad usage grants opens everything, so use it carefully.

### What is the difference between a managed and an external table?

A managed table lives in storage that Unity Catalog controls, and dropping it removes the data too. An external table points at a path you registered through an external location, and dropping it removes only the metadata.

### What is credential vending?

It is Unity Catalog issuing a short-lived storage credential scoped to one table's path after checking your privileges. Engines then read the files directly, so no long-lived bucket keys need to live in notebooks or jobs.

### Is Unity Catalog only for Databricks?

No. Databricks runs a managed version, and there is an open-source Unity Catalog server with REST, Delta and Iceberg REST APIs. The project lists integrations with Spark, DuckDB, Trino, Daft and others.

## Summary

Unity Catalog organises data and AI assets in a metastore, catalog, schema and object tree, and governs them with explicit grants that inherit downward. Reading a table always needs three checks: `USE CATALOG`, `USE SCHEMA` and `SELECT`, and writing adds `MODIFY`. After the checks pass, Unity Catalog vends short-lived storage credentials, so engines never need permanent bucket keys. Recent open-source releases, 0.6.0 in August and 0.7.0 in October 2026, added a Spark 4.2 connector with metric views, which put shared metric definitions under the same governance as the tables beneath them.

## Sources

- [GitHub: Unity Catalog README](https://github.com/unitycatalog/unitycatalog/blob/main/README.md)
- [GitHub: Unity Catalog docs, Auth and valid privilege grants](https://github.com/unitycatalog/unitycatalog/blob/main/docs/server/auth.md)
- [GitHub: Unity Catalog docs, Users and Privileges](https://github.com/unitycatalog/unitycatalog/blob/main/docs/server/users-privileges.md)
- [GitHub: Unity Catalog docs, Metric Views](https://github.com/unitycatalog/unitycatalog/blob/main/docs/usage/metric-views.md)
- [GitHub: Unity Catalog docs, UC Delta API](https://github.com/unitycatalog/unitycatalog/blob/main/docs/usage/api/delta.md)
- [GitHub: Unity Catalog docs, Volumes](https://github.com/unitycatalog/unitycatalog/blob/main/docs/usage/volumes.md)
- [GitHub: Unity Catalog docs, Table Formats](https://github.com/unitycatalog/unitycatalog/blob/main/docs/usage/tables/formats.md)
- [PyPI: unitycatalog-client release history](https://pypi.org/project/unitycatalog-client/#history)
