Repository navigation
Description
Background
Currently, Unity Catalog supports privileges such as USE CATALOG, CREATE SCHEMA, CREATE TABLE, SELECT, etc.
These privileges allow a user to perform specific operations on a securable, but they do not necessarily allow a user to manage permissions for other principals.
For example, suppose user1 owns a catalog and grants user2 the following privileges:
USE CATALOGCREATE SCHEMA
user2 can use the catalog and create schemas, but user2 cannot grant or revoke privileges for user3 because user2 is not the owner and does not have a permission-management privilege.
Problem
There is a use case where an owner or administrator wants to delegate permission-management capabilities to another user without transferring ownership of the securable.
For example:
user1 = OWNER of catalog
|
+-- grants USE CATALOG + CREATE SCHEMA to user2
|
+-- wants user2 to manage permissions for user3
Ideally, user1 should be able to grant a MANAGE privilege to user2:
user1
|
+-- OWNER
|
+-- grants MANAGE --> user2
user2
|
+-- MANAGE
|
+-- grants/revokes appropriate privileges --> user3
This would allow organizations to delegate access-management responsibilities without giving the delegated user full ownership of the catalog.
Proposed Solution
Introduce a MANAGE privilege for applicable securables, such as:
- Catalog
- Schema
- Table
- Volume
- Function
- Other applicable securables
A principal with MANAGE should be authorized to grant and/or revoke privileges on the corresponding securable, while OWNER would continue to represent full ownership.
The authorization model could conceptually be:
OWNER
|
+-- Full control, including permission management
MANAGE
|
+-- Manage grants/revokes on the securable
CREATE / USE / SELECT / MODIFY / ...
|
+-- Perform the specific operation only
Example Use Case
Consider a data platform team:
platform-adminowns the catalog.data-engineeris responsible for managing access to schemas/tables.analystneeds access to specific tables.
Currently, the platform admin may need to perform every grant/revoke operation.
With MANAGE, the platform admin could delegate this responsibility:
platform-admin
OWNER on catalog
|
+---- MANAGE ---> data-engineer
|
+---- SELECT -------> analyst
+---- USE SCHEMA ---> analyst
This provides a cleaner separation between:
- Resource ownership
- Permission management
- Resource usage
Current Behavior
Based on the current authorization model, privileges such as CREATE SCHEMA and USE CATALOG are operation-specific privileges.
For example, creating a schema is authorized using either:
OWNER on catalog
or:
USE CATALOG + CREATE SCHEMA
This means that having CREATE SCHEMA does not automatically provide permission-management capabilities.
Similarly, USE CATALOG, USE SCHEMA, SELECT, CREATE TABLE, etc. provide access to specific operations but do not imply that the principal can grant those privileges to another principal.
OWNER is treated separately from the regular grantable privileges.
Why MANAGE Could Be Useful
A dedicated MANAGE privilege would allow the system to distinguish between:
- A user who owns a resource.
- A user who is allowed to manage permissions.
- A user who is only allowed to perform specific operations.
For example:
OWNER
|
+-- Can manage the resource
+-- Can manage permissions
+-- Can delegate MANAGE
+-- Can perform owner-authorized operations
MANAGE
|
+-- Can manage permissions
+-- Can grant/revoke allowed privileges
+-- Does NOT become the owner
USE / CREATE / SELECT / MODIFY / ...
|
+-- Can perform the specific operation
+-- Does NOT automatically manage permissions
Example Scenario
Suppose we have the following users:
user1 = Platform Administrator
user2 = Data Access Manager
user3 = Data Analyst
Initially:
user1
|
+-- OWNER on catalog
The owner grants MANAGE to user2:
user1
|
+-- OWNER
|
+-- MANAGE --> user2
Now user2 can manage access:
user2
|
+-- SELECT --> user3
+-- USE SCHEMA --> user3
However, user2 does not become the owner of the catalog.
This would allow organizations to create a dedicated role/person responsible for access management without giving that role ownership of the entire resource.
Principle of Least Privilege
The proposed MANAGE privilege would also follow the principle of least privilege.
Currently, if permission management requires ownership, an administrator may need to give a user OWNER even when the user only needs to manage grants and revokes.
For example:
Current model:
Need to manage permissions
|
v
OWNER
With a dedicated MANAGE privilege:
Need to manage permissions
|
v
MANAGE
This reduces the privileges granted to delegated administrators.
Questions for Maintainers
Could the project maintainers clarify whether a MANAGE-style privilege is planned or supported in Unity Catalog?
If it is not currently supported, would the project be open to introducing a MANAGE privilege that allows a principal to grant and revoke permissions without making that principal the owner of the securable?
It would also be useful to clarify whether the intended authorization model is:
OWNER / Metastore Admin
|
+-- Only these principals can manage permissions
or whether the project would consider supporting:
OWNER / Metastore Admin
|
+-- Grants MANAGE
|
v
Delegated Access Manager
|
+-- Grants/revokes privileges
Expected Benefit
Introducing MANAGE could provide a clearer separation of responsibilities:
| Privilege | Responsibility |
|---|---|
OWNER |
Full ownership and control |
MANAGE |
Permission management |
CREATE SCHEMA |
Create schemas |
CREATE TABLE |
Create tables |
USE CATALOG |
Access/use catalog |
USE SCHEMA |
Access/use schema |
SELECT |
Read table data |
MODIFY |
Modify table data |
This would make it possible to delegate access-management responsibilities while preserving ownership boundaries.
Summary
The main proposal is to introduce a dedicated MANAGE privilege in Unity Catalog.
The goal is to separate:
- Ownership
- Permission management
- Resource usage
A user with CREATE SCHEMA, USE CATALOG, SELECT, or similar privileges should be able to perform the corresponding operations, but those privileges should not automatically provide permission-management capabilities.
At the same time, an owner should be able to delegate permission-management responsibilities to another principal through a dedicated MANAGE privilege without transferring ownership.
The proposed model would be:
OWNER
|
+-- Full control
|
+-- Can delegate MANAGE
MANAGE
|
+-- Manage permissions
|
+-- Grant/revoke appropriate privileges
|
+-- Does not transfer ownership
Specific Privileges
|
+-- USE CATALOG
+-- USE SCHEMA
+-- CREATE SCHEMA
+-- CREATE TABLE
+-- SELECT
+-- MODIFY
+-- etc.
|
+-- Only provide the corresponding operation
Would the Unity Catalog maintainers consider supporting such a MANAGE privilege, or is there an existing mechanism intended to support this use case?
Activity
[Server] Add MANAGE permission (#2088)
[Server] Add ownership transfer (#2149)