Sub topic 8
Who can see which lineage
This chapter covers the rules that decide which lineage a person can see. It assumes you can read lineage in Catalog Explorer, you can query system.access.table_lineage, and you know the basic Unity Catalog privileges (USE CATALOG, USE SCHEMA, SELECT). Lineage records which tables, jobs and notebooks produced which other tables. It can also reveal that sensitive objects exist, so Unity Catalog applies access rules to it.
Two access paths with different rules
You can reach lineage in two ways, and each has its own rules:
- Catalog Explorer shows a lineage graph for one object. It filters the graph according to what you are allowed to see.
- System tables such as
system.access.table_lineageexpose lineage as rows. Access is all-or-nothing. If you canSELECTfrom the table, you can read every row in it.
The difference matters when you design access. A user who sees a trimmed graph in the UI may see much more when you give them the system table.
| Path | What controls access | Granularity |
|---|---|---|
| Catalog Explorer lineage tab | Privileges on each table or view in the graph, plus workspace permissions on notebooks, jobs and dashboards | Per node |
| `system.access.table_lineage` and `column_lineage` | `USE CATALOG` on `system`, `USE SCHEMA` on `system.access`, `SELECT` on the table | Whole table |
| A view you create over the system table | Privileges on the view | Whatever filter you write |
Lineage in Catalog Explorer is filtered by privilege
When you open the Lineage tab of a table, Unity Catalog starts from that table and walks the lineage graph. For each node, it checks whether you may see that object.
To see lineage for a table, you need to be able to see the table itself. In practice that means one of these:
SELECTon the table, plusUSE CATALOGon its catalog andUSE SCHEMAon its schema.- The
BROWSEprivilege on the catalog or schema.BROWSElets a user see an object's metadata, including lineage, without reading any data.
BROWSE is useful for data discovery. An analyst can find out where a table comes from and who owns it, and still be unable to read its rows.
For the other nodes in the graph, the same rule applies to each one. If you cannot see an upstream or downstream table, the graph does not show you its details. You may see a placeholder in its place, or the connection may be hidden. The exact presentation can change between releases, so check the current Databricks documentation. The principle stays the same: the graph never gives you more than your own privileges allow.
Notebooks, jobs, pipelines and dashboards follow a second rule. These are workspace objects, so you need permission on them in the workspace to see their names and open them. A table owner might see that a job wrote to their table but be unable to open the job if they have no access to it.
Lineage across workspaces
Lineage is captured per metastore, not per workspace. If two workspaces share one metastore, a table written by a job in workspace A shows that lineage when you view the table from workspace B. The table-level privilege checks above still apply. The workspace-object checks apply to the workspace where you are working. A job in workspace A may be visible by name only, or hidden, when you view the graph from workspace B. The reason is that your permissions in workspace A do not carry over to workspace B.
System tables are not filtered per user
System tables follow a different model. The lineage system tables hold events for the whole metastore, across all workspaces attached to it. Unity Catalog has no row-level filter that limits you to lineage for objects you can see. If you can SELECT from system.access.table_lineage, you can read all of it.
That table contains:
- Full names of source and target tables, including tables in catalogs you cannot read.
- The type of entity that performed the work, and its identifiers.
- Timestamps that show when pipelines run.
None of this exposes table contents. It does expose structure: which tables exist, how they connect, and when jobs run. For some organizations that is sensitive. A table named hr.compensation.exec_bonus_2026 leaks information even if nobody can read it.
The same applies to system.access.audit, which also records user emails and request parameters. Treat access to these tables as a governance privilege, not a default.
Granting access to the system tables
Someone must first enable the access system schema in your metastore. Metastore admins and account admins do this, and the details are covered in the system tables chapter. After that, nobody can read the tables until you grant access. Grant it to a small group, as in the example from the earlier chapter:
GRANT USE CATALOG ON CATALOG system TO `data-governance`;
GRANT USE SCHEMA ON SCHEMA system.access TO `data-governance`;
GRANT SELECT ON TABLE system.access.table_lineage TO `data-governance`;
GRANT SELECT ON TABLE system.access.column_lineage TO `data-governance`;
GRANT SELECT ON TABLE system.access.audit TO `data-governance`;Grant SELECT on the individual tables, as shown. Do not grant it on the whole system.access schema. A schema-level grant also covers any table Databricks adds there later.
Sharing a limited slice with a filtered view
Often a team needs lineage for its own tables only. For example, the sales team wants to know what feeds main.sales, but has no reason to see HR pipelines. The usual solution is a view that holds the filter, so users never get access to the system table.
Unity Catalog views run with the privileges of the view's owner. A user querying the view needs SELECT on the view, plus USE CATALOG and USE SCHEMA on where it lives. They need nothing on system. The owner of the view needs read access to the system table, so it should be created by a governance principal.
CREATE CATALOG IF NOT EXISTS governance;
CREATE SCHEMA IF NOT EXISTS governance.shared;
CREATE OR REPLACE VIEW governance.shared.sales_lineage AS
SELECT
source_table_full_name,
target_table_full_name,
entity_type,
event_time
FROM system.access.table_lineage
WHERE target_table_full_name LIKE 'main.sales.%'
OR source_table_full_name LIKE 'main.sales.%';
GRANT USE CATALOG ON CATALOG governance TO `sales-analysts`;
GRANT USE SCHEMA ON SCHEMA governance.shared TO `sales-analysts`;
GRANT SELECT ON VIEW governance.shared.sales_lineage TO `sales-analysts`;The view has a gap. A row where main.sales.orders is the source and hr.payroll.summary is the target still appears, because one side matches the filter. Analysts then learn the name of an HR table. If that matters, require both sides to match, or filter the other side to a list of allowed catalogs. Decide this on purpose. Do not rely on a pattern you wrote quickly.
SELECT DISTINCT source_table_full_name, target_table_full_name
FROM governance.shared.sales_lineage
WHERE target_table_full_name = 'main.sales.daily_revenue';Common errors
- A user sees an empty or partial lineage tab. They probably lack
SELECTorBROWSEon some of the related tables. Check privileges on the table at the center of the graph first. Then check the neighbors. INSUFFICIENT_PERMISSIONSor "schema not found" onsystem.access. Either theaccessschema is not enabled, or the user is missingUSE CATALOGonsystemorUSE SCHEMAonsystem.access. All three grants are needed.- A view over a system table fails for the analysts. The view owner has probably lost access to the system table, for example when the owner was a person who left the team. Own governance views with a service principal or a group-managed identity, not with a person.
- Lineage is missing for a table the user owns. This is usually not a permission problem. Lineage may not have been captured for that workload, or the retention period has passed. The earlier chapters on capture and limits cover those cases.
Review
- Catalog Explorer filters lineage per node, using your privileges on tables and your workspace permissions on notebooks, jobs and dashboards.
- System tables are not filtered.
SELECTonsystem.access.table_lineageshows lineage for the whole metastore. BROWSEgives metadata and lineage visibility without data access.- A view over a system table is the standard way to share a limited slice. Check which side of each lineage row your filter covers.
Exercise
An analyst has SELECT on main.sales.daily_revenue and USE CATALOG and USE SCHEMA on the parent objects. In Catalog Explorer, the upstream part of the lineage graph for that table shows a restricted placeholder where you expected finance.ledger.entries. Why, and which two options let you fix it without granting data access to the analyst?
Show answer
The analyst cannot see finance.ledger.entries, because they have no SELECT or BROWSE privilege on it, so the graph hides its details. Option one: grant BROWSE on the finance catalog or the ledger schema, which exposes metadata and lineage but not rows. Option two: create a filtered view over system.access.table_lineage that includes the relevant rows, and grant SELECT on the view. Option two reveals the table name, so use it only if that is acceptable.
Exercise
Why is GRANT SELECT ON TABLE system.access.table_lineage TO sales-team`` a poor way to let the sales team trace their own pipelines?
Show answer
The system table is not filtered per user. The sales team would be able to read lineage rows for every catalog and workspace in the metastore, including the names and run times of tables they have no right to know about. A view filtered to the sales catalog, with the grant on the view, gives them what they need without that exposure.