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.
I've been getting a bad request calls to some of the admin APIs (GetGroupsAsAdmin, GetAppsAsAdmin), despite making calls in line with what the documentation (https://learn.microsoft.com/en-us/rest/api/power-bi/admin/groups-get-groups-as-admin) says.
I'm connected as a Power BI Service Admin, and can make calls successfully to other admin APIs (e.g. dataflows and datasets), so I don't believe this is a permissions issue. We have all API tenant settings enabled. We are working with a pro licence.
I'm not getting any more information than just the 400 code in response - is there anything broken about these particular APIs?
Connect-PowerBIServiceAccount Invoke-PowerBIRestMethod -Method Get -Url "https://api.powerbi.com/v1.0/myorg/admin/groups?$top=10" $Error[$Error.Count - 1].Exception.InnerException
EDIT: I've also tried this with parameters and arguments ripped straight from the docs and got a 404 error:
https://api.powerbi.com/v1.0/myorg/admin/groups?$expand=users&$top=100
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @JoshT
I am so glad to hear that your issue has been fixed . Thanks for your sharing . I will change the status to "Delivered" .
Best Regards,
Community Support Team _ Ailsa Tao