cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to get a list of users in a workspace with Account Level APIs

unseen007
New Contributor

Hi There,

We are planning to move to Unity Catalog soon so started replacing workspace API with Account Level APIs. One use case I have is getting a list of users, pretty straight forward with workspace:
{workspaceUrl}api/2.0/preview/scim/v2/Users?count={count}&startIndex={index}

How can I get the same result with Account Level API?

This will give me all users at account level, how do I get the users for workspace from here? {DatabricksAccountURL}/api/2.0/accounts/scim/v2/Users?count={count}&startIndex={index}


1 REPLY 1

szymon_dybczak
Contributor III

Hi @unseen007 ,

To get a list of all users in a given workspace, you should use api/2.0/preview/scim/v2/Users api endpoint. Why do you assume this API is inappropriat? Unity Catalog has nothing to do with this. One API let's you list user at account level (/api/2.0/accounts), the other at workspace level. Both are valid.

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