Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
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:
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
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:
Best Regards,
Jay
Thnak you @Anonymous
Ok so according to documents :
i am not assigned to any workspaces? What about "MyWorkspace"?
Best,
Jacek
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
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...
Proud to be a Datanaut!
Private message me for consulting or training needs.