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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
LucaVivian
New Member

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.