Skip to content

A scenario for a platform engineer · Senior and up

Who looked at the salaries table?

Ledger · Audit
Friday, 10:30

HR believes someone outside the team read the salaries table in Unity Catalog last week, and asks you for a list of everyone who accessed it.

What do you do?

Tap the one you would do. The answer opens below.

Show the best call

Query the audit log system table for events on that table last week.

Within the hour you hand over names and times.

Why

Unity Catalog records access to data in the audit log, and the log can be queried as the system table system.access.audit. Grants say who may. The audit log says who did.

Read it in the Databricks docs (opens in a new tab)

The other two

Works, at a price. Look through the query history of the SQL warehouses.
You find the warehouse queries. Reads from notebooks and jobs on classic clusters are not in it.
A poor call. List who has SELECT on the table and send that.
That is who could have read it, not who did. HR asked a different question.

The words in this scenario

Unity Catalog.
The part of Databricks that governs data: who may see and change which tables and files, where data came from, and who did what. In the docs (opens in a new tab)
System tables.
Tables that Databricks keeps about your own account, such as the audit log and the billing usage. They are read with ordinary queries. In the docs (opens in a new tab)
SQL warehouse.
Compute made for running SQL queries and dashboards. In the docs (opens in a new tab)

Go deeper on brickster.ai

More scenarios

Had one like this at work? Send it to us: the best tickets come from real incidents.

Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.