cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Governance
Join discussions on data governance practices, compliance, and security within the Databricks Community. Exchange strategies and insights to ensure data integrity and regulatory compliance.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Data Governance Unity Catalog: SELECT privilege

old_school
New Contributor

Hey Databricks Community,

I have applied USE CATALOG, USE SCHEMA and SELECT privilege to a table in the unity catalog. The grants shows only SELECT but I am able to do INSERT as well. Is this the expected behaviour ? or am missing something ?

DELETE and UPDATE doesn't work which is expected.

I am using databricks sdk version 0.7.0

Thank you.

1 REPLY 1

Khaja_Zaffer
Contributor III

Hello @old_school 

Good day!

I dont think its expected behaviour. 

Table Privileges Summary
PrivilegeAllowsPrerequisites
SELECT
Read data (SELECT * FROM table)
USE CATALOG + USE SCHEMA
MODIFY
Write data: INSERT, UPDATE, DELETE, MERGE
SELECT + USE CATALOG + USE SCHEMA
MANAGE
Manage grants, ownership, drop/rename
USE CATALOG + USE SCHEMA
ALL PRIVILEGES
All above (expands dynamically)

You can look here for more details on the same: https://docs.databricks.com/aws/en/data-governance/unity-catalog/manage-privileges/privileges 

USE CATALOG and USE SCHEMA are prerequisitesโ€”they don't grant read/write on their own. SELECT โ†’ read-only. INSERT requires MODIFY (plus prerequisites).

So we can check UI approach: Data โ†’ Catalog โ†’ Table โ†’ Permissions tab โ†’ Select your principal (user/group/SP).Shows full effective list (direct + inherited). If MODIFY listed โ†’ explains INSERT.

 

You can also do this by 

SHOW GRANTS ON SCHEMA <catalog>.<schema>;SHOW GRANTS ON CATALOG <catalog>;

 

Revoke unwanted:
REVOKE MODIFY ON SCHEMA <catalog>.<schema> FROM `<principal>`;

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now