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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
jaryszek
Power Participant
Power Participant

get list of all workspaces for user

hi Guys,

 

i am using method in power shell to get list of all workspaces:

1) first Login-PowerBI
2) Get-PowerBIWorkspace -All as second one to get all workspaces but i do nit get anything:

 

jaryszek_0-1657010371818.png

 

why? 

i suspect it is ome kind of user privileges to see it but this is my account so i should see my workspaces somehow.

Please help,
Jacek

 

4 REPLIES 4
Anonymous
Not applicable

Hi @jaryszek ,

 

According to the document, this script will return all Power BI workspaces the calling user is assigned to.

If you are a tenant administrator, you can view all workspaces in your tenant by adding -Scope Organization.

Requirements:

  • Windows PowerShell v3.0 and up with .NET 4.7.1 or above.
  • PowerShell Core (v6) and up on any OS platform supported by PowerShell Core.

 

Best Regards,

Jay

Thnak you @Anonymous 

Ok so according to documents :

jaryszek_0-1657264284203.png

 

 i am not assigned to any workspaces? What about "MyWorkspace"?
Best,
Jacek

 

 

jaryszek
Power Participant
Power Participant

thank you @coolinq

But some of other methods like get-datasets is working, for example:

Invoke-PowerBIRestMethod -Url "https://app.powerbi.com/groups/me/datasets/" -Method GET

Why?

Best,
Jacek

collinq
Super User
Super User

Hi @jaryszek ,

 

The permissions to view that Workspace ID's is to have administrator rights.  (This link may be helpful:  Admin - WorkspaceInfo GetModifiedWorkspaces - REST API (Power BI Power BI REST APIs) | Microsoft Doc... 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors