Skip to content
Software capabilities
Microsoft Power BI

How to list Microsoft Power BI workspaces

Use the Groups REST API to list the workspaces your account can access. Use Get-PowerBIWorkspace to retrieve the same list in PowerShell.

Documentation reviewed · 2 methods with sources

Ways to do it

  1. API: GET /v1.0/myorg/groups
  2. CLI: Get-PowerBIWorkspace -Scope Individual
API

GET /v1.0/myorg/groups

List workspaces accessible to the signed-in user. Use $filter, $top, and $skip to narrow or page the result.

Read source: Microsoft Power BI Get Groups REST API
Requirements
A Power BI user with access to the workspaces and a delegated Power BI access token with Workspace.Read.All or Workspace.ReadWrite.All.
Limitations
Changes to workspace permissions can take time to appear in the API.

Example shell

curl --fail --get -H "Authorization: Bearer $POWER_BI_ACCESS_TOKEN" \
  --data-urlencode '$top=100' --data-urlencode '$skip=0' \
  https://api.powerbi.com/v1.0/myorg/groups
CLI

Get-PowerBIWorkspace -Scope Individual

List your assigned workspaces as PowerShell objects. Use -All for the full list or -First and -Skip to select a page.

Read source: Microsoft Get-PowerBIWorkspace cmdlet
Requirements
The MicrosoftPowerBIMgmt.Workspaces module and a Power BI session signed in with Connect-PowerBIServiceAccount. The user must have access to the workspaces.
Limitations
The default command returns the first 100 assigned workspaces. -First accepts up to 5,000.

Example text

Get-PowerBIWorkspace -Scope Individual -First 100 -Skip 0