Forum Discussion
Power BI Rest API GetGroupsAsAdmin users expansion no longer working for personal workspaces
- 4 years ago
For larger tenants, this meant bumping into API Limits all the time .. The GetGroupsAsAdmin API is called once for every workspace, and will return all the specified information in a single go(Maximum 200 requests per hour).
There’s a limit for 5000 workspaces per call, but you can work your way around this by intelligently looping over this.
Hi kdevroede, I've run into the same issue and digging into the documentation it appears that all user membership data is / will be removed from the GetGroupsAsAdmin endpoint. From the doco https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups-get-groups-as-admin#group
"The users that belong to the group, and their access rights. This value will be empty. It will be removed from the payload response in an upcoming release. To retrieve user information on an artifact, please consider using the Get Group User APIs, or the PostWorkspaceInfo API with the getArtifactUser parameter."
Tx JZT
That clarifies so I'm now experimenting with the PostWorkspaceInfo API..