cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
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
Esteemed 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.