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:Ā 

Which API to use to list groups in which a given user is a member

rpl
New Contributor III

Is there an API that can be used to list groups in which a given user is a member? Specifically, Iā€™d be interested in account (not workspace) groups.

It seems there used to be a workspace-level list-parents API referred to in the answers to this question. The current documentation, however, does not seem to mention list-parents ā€“ has it been deprecated?

I know I can get the required info by listing each group's users and parsing the response, but thatā€™s rather tedious. Is there an API for this I havenā€™t found?

2 REPLIES 2

Alberto_Umana
Databricks Employee
Databricks Employee

Hello @rpl,

You can explore this API: https://docs.databricks.com/api/workspace/users/get which would return an attribute (ā€œgroupsā€) showing the groups a user belongs to at the account level

rpl
New Contributor III

Thanks! But this doesnā€™t do what I need. It is a workspace-level API that AFAIU returns info on groups that grant the user privileges to the workspace itself, probably also workspace-specific objects like secret scopes, folders etc. If the (account-level) user does not have privileges to he workspace in question, the API returns 404.

What i'm looking for is listing all account-level groups the user is a member in, including groups used to grant privileges to Unity Catalog securable objects. I also donā€™t necessarily know what workspaces (if any) the user has privileges to when i'm making the query.

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