POST_START
Granting and Revoking Catalog-Level Access
I’ve been working on setting up a new data pipeline for our analytics team, and one of the key tasks is to ensure that the right people have access to the right data. Today, I need to grant access to the training catalog to a group of analysts. I remember from the curriculum that the primary operation is to use the GRANT USE CATALOG command, so I’ll start there.
Granting Access to the Catalog
I opened up my notebook and connected to the Databricks workspace. I wanted to make sure that the analysts group can access the training catalog. I ran the following command:
GRANT USE CATALOG ON CATALOG training TO `analysts`;
I chose this command because it’s the standard way to grant catalog-level access in Unity Catalog. The USE CATALOG privilege allows the group to interact with the catalog, such as listing databases and tables within it. I wanted to ensure that the analysts could access the training data without having more privileges than necessary.
Verifying the Grant
After granting the access, I wanted to confirm that the permission was applied correctly. I ran the SHOW GRANTS command to see what privileges were assigned to the training catalog:
SHOW GRANTS ON CATALOG training;
This command returned a list of all the grants associated with the training catalog. I checked the output and confirmed that the analysts group had been granted the USE CATALOG privilege. This gave me confidence that the access was properly configured.
Revoking Access When Necessary
Later in the day, I received a note that the analysts group no longer needed access to the training catalog. I wanted to make sure that their access was removed to maintain security and compliance. I executed the REVOKE USE CATALOG command:
REVOKE USE CATALOG ON CATALOG training FROM `analysts`;
By revoking the privilege, I ensured that the analysts could no longer access the catalog. I also ran the SHOW GRANTS command again to confirm that the privilege was no longer listed. This step was crucial to prevent any unintended access to the training data.
Reflection and Next Steps
Through this process, I learned the importance of managing access at the catalog level in Unity Catalog. Granting and revoking privileges is a critical part of maintaining data security and ensuring that users have only the access they need. I’ll continue to follow these steps as I work on other datasets and user groups in the future.


Leave a Reply