cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Retrieve Admin and Non-Admin Permissions at Workspace Level in Azure Databricks.

xecel
New Contributor

Hello,

I am working on a project to document permissions for both admins and non-admin users across all relevant objects at the workspace level in Azure Databricks (e.g., tables, jobs, clusters, etc.).

I understand that admin-level permissions might be partially available through information schema, but detailed permissions for non-admin users likely require the Databricks REST API.

Could you guide me on:

  1. The most efficient way to retrieve and document these permissions?
  2. Whether there are built-in tools or queries for this purpose?
  3. Any recommended practices for structuring this data in a report?

Thank you!

1 REPLY 1

Walter_C
Databricks Employee
Databricks Employee

In Databricks the object permissions are based in the object itself and not the user. Unfortunately as of now there is no way to get all the objects permissions in a single built in query.

There is custom options as for example for clusters, first run the API to list clusters and save all the cluster id in a list. Once you have this list of cluster ids, you can iterate by each cluster using the get permissions for clusters API call.

Right now I dont have any custom code available on my side that will make this same process but it is an idea on how you can do it, it will apply the same for jobs.

In regards tables if you are using Unity Catalog you can refer to API: https://docs.databricks.com/api/workspace/grants/get 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group