Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Get all the users through API in both classic as well as in new workspace model

Can someone help me with getting all the users using Power BI in an organisation whether they are using classic workspace model or the new workspace model.

 

I tried using the get users API it doesn't return all the users, but when i add a new user to my workspace and then again hit the url to get me all the workspaces it shows that users personal workspace as well, I dont know why this is happening.

 

I thought of getting all the workspaces ID first and then using the ID getting all the users since get workspace should return all the personal workspaces as well but for some reason this is not happening.

 

Can someone help me with the same? 

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

You can use the following REST API to get the user list of a specific workspace:

Groups - Get Group Users

yingyinr_1-1624256656013.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

You can use the following REST API to get the user list of a specific workspace:

Groups - Get Group Users

yingyinr_1-1624256656013.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.