How to get a list of users in a workspace with Account Level APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 12:16 PM
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}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 12:31 PM
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.

