Sub topic 8
Account, workspace and metastore administrators
This chapter assumes you know the securable hierarchy, how GRANT and REVOKE work, and how ownership works. It covers the administrative roles that sit above ordinary privileges in Unity Catalog, and how to use them sparingly.
Three administrative scopes
Databricks splits administration across three scopes. Each scope covers a different set of objects.
| Role | Scope | Typical responsibilities |
|---|---|---|
| Account admin | The whole Databricks account | Manage users, groups and service principals. Create metastores. Assign metastores to workspaces. Assign other admins. |
| Metastore admin | One metastore | Manage privileges and ownership on objects in that metastore. Create catalogs. Manage storage credentials and external locations. |
| Workspace admin | One workspace | Manage workspace settings, compute policies and workspace-level users. Does not automatically gain data access. |
The roles are independent. Being a workspace admin does not make you a metastore admin, and the reverse is also true. A person can hold several roles, but each one is assigned separately.
Account admins
Account admins work in the account console. They create and manage identities, so they control which users, service principals and groups exist. They also create metastores and attach them to workspaces. Keep this group small, because an account admin can grant themselves access to nearly everything.
Metastore admins
The metastore admin role is the data-governance role. A metastore admin can manage privileges on any object in the metastore, create catalogs, and manage storage credentials and external locations.
Assign the role to a group, not to one person. A group survives staff changes and can be reviewed in one place. A metastore admin can also take over objects whose owners have left.
ALTER CATALOG main OWNER TO `data-engineers`;Run by a metastore admin, this statement moves a catalog to a group. That is the usual way to recover an object that has no active owner.
Workspace admins
Workspace admins manage a single workspace. They add users, manage compute and configure workspace settings. Their workspace role does not grant access to table data. To read a table, a workspace admin still needs the same USE CATALOG, USE SCHEMA and SELECT privileges as anyone else.
Common errors
- Assigning the metastore admin role to an individual. When that person leaves, nobody can manage the metastore. Use a group.
- Assuming a workspace admin can read all data. The workspace role controls the workspace. Data access comes from privileges.
- Giving the account admin role widely. Account admins control identities and metastores, so a large group widens your risk.
- Using admin rights to avoid granting. If a team needs access, grant it to their group. Do not route them through an admin account.
A review checklist
- List who holds each admin role, and confirm each role is held by a group where the console allows it.
- Confirm at least two people can act as account admin, so one absence does not block you.
- Check that no regular pipeline runs under an admin identity. Use a service principal with scoped grants.
- Review the list on a schedule, and compare it with the audit log covered later in this tutorial.
Exercise
A workspace admin says they cannot query main.sales.orders, although they can manage every cluster in the workspace. Why, and what is the correct fix?
Show answer
The workspace admin role covers workspace settings and compute, not data. Querying the table needs USE CATALOG on main, USE SCHEMA on main.sales and SELECT on the table. The fix is to grant those privileges to a group the admin belongs to, for example with GRANT statements issued by the object owner or a metastore admin. Making the person a metastore admin is broader than needed.