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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
ddustye
New Member

GetGroupsAsAdmin API with User info

We are trying to use the GetGroupsAsAdmin API to return a list of workspaces with users expanded.

https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin

 

We are able to get results but, each group id looks like this with nothing in the users array.  I have all the necessary permissions as far as I can tell including Tenant read and write all.  Also, although this example shows an Orphaned Group (it was pulled from the api documentation page), I know that there are users associated with groups because when I use Get Group Users and use a group id, I get back the users in the group if it's a group that I have permission to view.  What could be the reason we're not seeing any users in the result?  Since GetGroupsAsAdmin is an admin api, shouldn't it be able to see the users of the groups it returns?

 

{
  "value": [
    {
      "id": "d5caa808-8c91-400a-911d-06af08dbcc31",
      "isReadOnly": false,
      "isOnDedicatedCapacity": false,
      "name": "Orphaned Group",
      "description": "Sample orphan group",
      "type": "Workspace",
      "state": "Active",
      "users": []
    }
  ]
}

1 REPLY 1
Anonymous
Not applicable

Unfortunately it is applicable only for workspaces in the new workspace experience

https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin#get-workspaces-with...)

Helpful resources

Announcements
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.