Show all privileges granted to principal

alm
Databricks Partner

Given the name of a principal in Databricks (I'm using account-level groups) is there an easy way to query or in other way obtain all privileges granted to this principal?

I know I can obtain the information by querying in several of the system.information_schema and will do that if there isn't a simpler option. It just seems like information that should be readily accessible?

alm
Databricks Partner

This dosn't really address my problem.

I worked around it and found another solution. It just surprised me that this information isn't readily available  

Ivan_Donev
New Contributor III

How did you solve your problem? By going through the information_schema or system tables? Or something else?

alm
Databricks Partner

Yes, I used a combination of the information_schema.{object_type}_privileges tables. As the naming varies, i.e. catalog_name in schema_privileges but table_catalog in table_privileges, it's a bit cumbersome but definitely possible.

sakthi_sujitha
Databricks Employee
Databricks Employee

This link will provide details on how to verify all the privileges granted to Service Principals