Admin - Groups GetGroupsAsAdmin
Returns a list of workspaces for the organization.
Note: The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) to call this API or authenticate via service principal.
This API allows 200 requests per hour at maximum.
Required scope: Tenant.Read.All or Tenant.ReadWrite.All
To set the permissions scope, see Register an app.
GET https://api.powerbi.com/v1.0/myorg/admin/groups?$top={$top}
GET https://api.powerbi.com/v1.0/myorg/admin/groups?$expand={$expand}&$filter={$filter}&$top={$top}&$skip={$skip}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
$top
|
query | True |
|
Returns only the first n results. This parameter is mandatory and must be in the range of 1-5000. |
$expand
|
query |
|
Expands related entities inline, receives a comma-separated list of data types. Supported: users, reports, dashboards, datasets, dataflows, workbooks |
|
$filter
|
query |
|
Filters the results based on a boolean condition |
|
$skip
|
query |
|
Skips the first n results. Use with top to fetch results beyond the first 5000. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
Examples
Get deleted workspaces (only applicable for workspaces in the new workspace experience)
Sample Request
GET https://api.powerbi.com/v1.0/myorg/admin/groups?$filter=state eq 'Deleted'&$top=100
Sample Response
{
"value": [
{
"id": "183dcf10-47b8-48c4-84aa-f0bf9d5f8fcf",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"name": "Sample Group 2",
"description": "Deleted sample group",
"type": "Workspace",
"state": "Deleted"
}
]
}
Get orphaned workspaces (only applicable for workspaces in the new workspace experience)
Sample Request
GET https://api.powerbi.com/v1.0/myorg/admin/groups?$expand=users&$filter=(not users/any()) or (not users/any(u: u/groupUserAccessRight eq Microsoft.PowerBI.ServiceContracts.Api.GroupUserAccessRight'Admin'))&$top=100
Sample Response
{
"value": [
{
"id": "d5caa808-8c91-400a-911d-06af08dbcc31",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"name": "Orphaned Group",
"description": "Sample orphan group",
"type": "Workspace",
"state": "Active",
"users": []
}
]
}
Get workspaces with dashboards expanded
Sample Request
GET https://api.powerbi.com/v1.0/myorg/admin/groups?$expand=dashboards&$top=100
Sample Response
{
"value": [
{
"id": "94E57E92-CEE2-486D-8CC8-218C97200579",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"capacityMigrationStatus": "Migrated",
"description": "shorter description",
"type": "Workspace",
"state": "Removing",
"name": "a",
"dashboards": [
{
"id": "4668133c-ae3f-42fb-ad7c-214a8623280c",
"displayName": "SQlAzure-Refresh.pbix",
"isReadOnly": false
},
{
"id": "a8f18ca7-63e8-4220-bc1c-f576ec180b98",
"displayName": "cdvc",
"isReadOnly": false
}
]
}
]
}
Get workspaces with datasets expanded
Sample Request
GET https://api.powerbi.com/v1.0/myorg/admin/groups?$expand=datasets&$top=100
Sample Response
{
"value": [
{
"id": "94E57E92-CEE2-486D-8CC8-218C97200579",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"capacityMigrationStatus": "Migrated",
"description": "shorter description",
"type": "Workspace",
"state": "Removing",
"name": "a",
"datasets": [
{
"id": "8ce96c50-85a0-4db3-85c6-7ccc3ed46523",
"name": "SQlAzure-Refresh",
"addRowsAPIEnabled": false,
"configuredBy": "admin@granularcontrols.ccsctp.net",
"isRefreshable": true,
"isEffectiveIdentityRequired": false,
"isEffectiveIdentityRolesRequired": false,
"isOnPremGatewayRequired": false,
"targetStorageMode": "Abf",
"createdDate": "2019-04-30T21:35:15.867-07:00",
"ContentProviderType": "PbixInImportMode"
},
{
"id": "7d6a4f72-1906-4e08-a469-bd6bc1ab7b69",
"name": "NESGames",
"addRowsAPIEnabled": false,
"configuredBy": "admin@granularcontrols.ccsctp.net",
"isRefreshable": true,
"isEffectiveIdentityRequired": false,
"isEffectiveIdentityRolesRequired": false,
"isOnPremGatewayRequired": false,
"targetStorageMode": "Abf",
"createdDate": "2019-04-30T21:35:15.867-07:00",
"ContentProviderType": "PbixInImportMode"
}
]
}
]
}
Get workspaces with datasets expanded (only applicable for workspaces in the new workspace experience)
Sample Request
GET https://api.powerbi.com/v1.0/myorg/admin/groups?$expand=datasets
Sample Response
{
"value": [
{
"id": "e380d1d0-1fa6-460b-9a90-1a5c6b02414c",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"name": "Sample Group 1",
"description": "Sample group",
"type": "Workspace",
"state": "Active",
"datasets": [
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff229",
"name": "SalesMarketing",
"addRowsAPIEnabled": false,
"configuredBy": "john@contoso.com",
"isRefreshable": true,
"isEffectiveIdentityRequired": false,
"isEffectiveIdentityRolesRequired": false,
"isOnPremGatewayRequired": false,
"encryption": {
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff229",
"encryptionStatus": "InSyncWithWorkspace"
}
}
]
},
{
"id": "183dcf10-47b8-48c4-84aa-f0bf9d5f8fcf",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"name": "Sample Group 2",
"description": "Deleted sample group",
"type": "Workspace",
"state": "Deleted",
"datasets": []
}
]
}
Get workspaces with reports expanded
Sample Request
GET https://api.powerbi.com/v1.0/myorg/admin/groups?$expand=reports&$top=100
Sample Response
{
"value": [
{
"id": "EC1EE11F-845D-495E-82A3-9DAC2072305A",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"capacityMigrationStatus": "Migrated",
"description": "cvcv",
"type": "Workspace",
"state": "Active",
"name": "WSv2Test12",
"reports": []
},
{
"id": "94E57E92-CEE2-486D-8CC8-218C97200579",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"capacityMigrationStatus": "Migrated",
"description": "shorter description",
"type": "Workspace",
"state": "Removing",
"name": "a",
"reports": [
{
"id": "5DBA60B0-D9A7-42AE-B12C-6D9D51E7739A",
"reportType": "PowerBIReport",
"name": "SQlAzure-Refresh",
"datasetId": "8ce96c50-85a0-4db3-85c6-7ccc3ed46523"
},
{
"id": "197E5C3C-D2F3-42D8-A536-875FB6D7D48C",
"reportType": "PowerBIReport",
"name": "NESGames",
"datasetId": "7d6a4f72-1906-4e08-a469-bd6bc1ab7b69"
}
]
}
]
}
Get workspaces with users expanded (only applicable for workspaces in the new workspace experience)
Sample Request
GET https://api.powerbi.com/v1.0/myorg/admin/groups?$expand=users&$top=100
Sample Response
{
"value": [
{
"id": "e380d1d0-1fa6-460b-9a90-1a5c6b02414c",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"name": "Sample Group 1",
"description": "Sample group",
"type": "Workspace",
"state": "Active",
"users": [
{
"emailAddress": "john@contoso.com",
"groupUserAccessRight": "Admin"
}
]
},
{
"id": "183dcf10-47b8-48c4-84aa-f0bf9d5f8fcf",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"name": "Sample Group 2",
"description": "Deleted sample group",
"type": "Workspace",
"state": "Deleted",
"users": []
}
]
}
Get workspaces with workbooks expanded
Sample Request
GET https://api.powerbi.com/v1.0/myorg/admin/groups?$expand=workbooks&$top=100
Sample Response
{
"value": [
{
"id": "94E57E92-CEE2-486D-8CC8-218C97200579",
"isReadOnly": false,
"isOnDedicatedCapacity": false,
"description": "shorter description",
"type": "Workspace",
"state": "Removing",
"name": "a",
"workbooks": [
{
"name": "My Excel sheet",
"datasetId": "8ce96c50-85a0-4db3-85c6-7ccc3ed46523"
}
]
}
]
}
Definitions
Dashboard |
A Power BI dashboard. Below is a list of properties that may be returned for a dashboard. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database. |
Dataflow |
The metadata of a dataflow. Below is a list of properties that may be returned for a dataflow. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database. |
Dataset |
A Power BI dataset. Below is a list of properties that may be returned for a dataset. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database. |
Datasource |
Datasource usage |
Dependent |
A Power BI Dependent dataflow |
Encryption |
Encryption information for a dataset |
Encryption |
Dataset encryption status |
Endorsement |
Power BI endorsement details |
Group |
A Power BI group |
Groups |
Odata response wrapper for a Power BI group list |
Group |
A Power BI user access right entry for workspace |
Group |
Access rights user has for the workspace |
Principal |
The principal type |
Report |
A Power BI report. Below is a list of properties that may be returned for a report. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database. |
Sensitivity |
Artifact sensitivity label info |
Tile |
A Power BI tile |
Workbook |
A Power BI workbook |
Dashboard
A Power BI dashboard. Below is a list of properties that may be returned for a dashboard. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database.
Name | Type | Description |
---|---|---|
dataClassification |
|
The data classification tag of the dashboard |
displayName |
|
The dashboard display name |
embedUrl |
|
The dashboard embed url |
id |
|
The dashboard id |
isReadOnly |
|
Is ReadOnly dashboard |
sensitivityLabel |
The dashboard sensitivity label |
|
tiles |
|
The tiles that belong to the dashboard. |
Dataflow
The metadata of a dataflow. Below is a list of properties that may be returned for a dataflow. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database.
Name | Type | Description |
---|---|---|
configuredBy |
|
The dataflow owner |
datasourceUsages |
Datasource usages |
|
description |
|
The dataflow description |
endorsementDetails |
The dataflow endorsement details |
|
modelUrl |
|
A URL to the dataflow definition file (model.json) |
modifiedBy |
|
The user that modified this dataflow |
modifiedDateTime |
|
modification date time |
name |
|
The dataflow name |
objectId |
|
The dataflow id |
sensitivityLabel |
The dataflow sensitivity label |
|
upstreamDataflows |
Upstream Dataflows |
Dataset
A Power BI dataset. Below is a list of properties that may be returned for a dataset. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database.
Name | Type | Description |
---|---|---|
ContentProviderType |
|
The content provider type for the dataset |
CreateReportEmbedURL |
|
The dataset create report embed url |
CreatedDate |
|
DateTime of creation of this dataset |
Encryption |
The dataset encryption information (Only applicable when $expand is specified) |
|
IsEffectiveIdentityRequired |
|
Whether the dataset requires an effective identity. This indicates that you must send an effective identity using the GenerateToken API. |
IsEffectiveIdentityRolesRequired |
|
Whether RLS is defined inside the PBIX file. This indicates that you must specify a role. |
IsOnPremGatewayRequired |
|
Dataset requires an On-premises Data Gateway |
IsRefreshable |
|
Can this dataset be refreshed |
QnaEmbedURL |
|
The dataset qna embed url |
addRowsAPIEnabled |
|
Whether the dataset allows adding new rows |
configuredBy |
|
The dataset owner |
datasourceUsages |
Datasource usages |
|
description |
|
The dataset description |
endorsementDetails |
The dataset endorsement details |
|
id |
|
The dataset id |
name |
|
The dataset name |
sensitivityLabel |
The dataset sensitivity label |
|
upstreamDataflows |
Upstream Dataflows |
|
webUrl |
|
The dataset web url |
DatasourceUsage
Datasource usage
Name | Type | Description |
---|---|---|
datasourceInstanceId |
|
The datasource instance ID |
DependentDataflow
A Power BI Dependent dataflow
Name | Type | Description |
---|---|---|
groupId |
|
The target group id |
targetDataflowId |
|
The target dataflow id |
Encryption
Encryption information for a dataset
Name | Type | Description |
---|---|---|
EncryptionStatus |
Dataset encryption status |
EncryptionStatus
Dataset encryption status
Name | Type | Description |
---|---|---|
InSyncWithWorkspace |
|
Encryption is supported and is in sync with the encryption settings |
NotInSyncWithWorkspace |
|
Encryption is supported and not in sync with the encryption settings |
NotSupported |
|
Encryption is not supported for this dataset |
Unknown |
|
Unable to determine state due to dataset corruption |
EndorsementDetails
Power BI endorsement details
Name | Type | Description |
---|---|---|
certifiedBy |
|
The user that certified the artifact |
endorsement |
|
The endorsement status |
Group
A Power BI group
Name | Type | Description |
---|---|---|
capacityId |
|
The capacity id |
dashboards |
The dashboards that belong to the group. Available only for admin API calls. |
|
dataflowStorageId |
|
The Power BI dataflow storage account id |
dataflows |
|
The dataflows that belong to the group. Available only for admin API calls. |
datasets |
|
The datasets that belong to the group. Available only for admin API calls. |
description |
|
The group description. Available only for admin API calls. |
id |
|
The workspace id |
isOnDedicatedCapacity |
|
Is the group on dedicated capacity |
isReadOnly |
|
Is the group read only |
name |
|
The group name |
reports |
|
The reports that belong to the group. Available only for admin API calls. |
state |
|
The group state. Available only for admin API calls. |
type |
|
The type of group. Available only for admin API calls. |
users |
The users that belong to the group, and their access rights. Available only for admin API calls. |
|
workbooks |
|
The workbooks that belong to the group. Available only for admin API calls. |
Groups
Odata response wrapper for a Power BI group list
Name | Type | Description |
---|---|---|
odata.context |
|
OData context |
value |
|
The groups |
GroupUser
A Power BI user access right entry for workspace
Name | Type | Description |
---|---|---|
displayName |
|
Display name of the principal |
emailAddress |
|
Email address of the user |
groupUserAccessRight |
Access rights user has for the workspace |
|
identifier |
|
Identifier of the principal |
principalType |
The principal type |
GroupUserAccessRight
Access rights user has for the workspace
Name | Type | Description |
---|---|---|
Admin |
|
Grants administrator rights to workspace |
Contributor |
|
Grants Read and Explore access to content in group |
Member |
|
Grants Read, Reshare and Explore access to content in workspace |
None |
|
Removes permission to content in workspace |
Viewer |
|
Grants Read only access to content in group |
PrincipalType
The principal type
Name | Type | Description |
---|---|---|
App |
|
Service principal type |
Group |
|
Group principal type |
User |
|
User principal type |
Report
A Power BI report. Below is a list of properties that may be returned for a report. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database.
Name | Type | Description |
---|---|---|
createdBy |
|
The report owner |
createdDateTime |
|
The report created date time. |
datasetId |
|
The dataset id |
description |
|
The report description |
embedUrl |
|
The report embed url |
endorsementDetails |
The report endorsement details |
|
id |
|
The report id |
modifiedBy |
|
The user that modified this report |
modifiedDateTime |
|
The report modified date time. |
name |
|
The report name |
reportType |
enum:
|
The report type |
sensitivityLabel |
The report sensitivity label |
|
webUrl |
|
The report web url |
SensitivityLabel
Artifact sensitivity label info
Name | Type | Description |
---|---|---|
labelId |
|
The sensitivity label ID |
Tile
A Power BI tile
Name | Type | Description |
---|---|---|
colSpan |
|
number of columns a tile should span |
datasetId |
|
The dataset id. Available only for tiles created from a report or using a dataset; for example, Q&A tiles. |
embedData |
|
The tile embed data |
embedUrl |
|
The tile embed url |
id |
|
The tile id |
reportId |
|
The report id. Available only for tiles created from a report. |
rowSpan |
|
number of rows a tile should span |
title |
|
The dashboard display name |
Workbook
A Power BI workbook
Name | Type | Description |
---|---|---|
datasetId |
|
DatasetId for workbooks. Only applies for workbooks that has an associated dataset. |
name |
|
The workbook name |