Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello,
I am trying to use Postman and call Power BI API.
First I call https://login.microsoftonline.com/9b511fda-f0b1-43a5-b06e-1e720f64520a/oauth2/token and received token. That is ok.
Then I call https://api.powerbi.com/v1.0/myorg/groups and recieve this:
{
"@odata.context": "http://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1.0/myorg/$metadata#groups",
"@odata.count": 0,
"value": []
}
Solved! Go to Solution.
You're supposed to cal the official API at https://api.powerbi.com/v1.0/myorg/groups
Groups - Get Groups - REST API (Power BI Power BI REST APIs) | Microsoft Docs
Do you see the same error message there? Do you maybe not have access to any workspaces in your tenant?
Yes, it was problem of permission. I add security group (which contains service principal) as admin to my workspaces and it starts working.
Thank you for your help.
There is another API call "Get Groups as Admin".
I see, maybe thats why @odata.count: 0 - our app don't have permission.
I am going to ask our tenant admins.
please post the actual error message
I call api.powerbi.com and don't receive list of workspaces but only this json:
{
"@odata.context": "http://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1.0/myorg/$metadata#groups",
"@odata.count": 0,
"value": []
}
I try to call directly http://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1.0/myorg/$metadata#groups and receive:
502 Badgateway - The proxy did not receive a valid response in time.
D.
You're supposed to cal the official API at https://api.powerbi.com/v1.0/myorg/groups
Groups - Get Groups - REST API (Power BI Power BI REST APIs) | Microsoft Docs
Do you see the same error message there? Do you maybe not have access to any workspaces in your tenant?
I call official API at https://api.powerbi.com/v1.0/myorg/groups but I receive only this JSON:
{
"@odata.context": "http://wabi-north-europe-f-primary-redirect.analysis.windows.net/v1.0/myorg/$metadata#groups",
"@odata.count": 0,
"value": []
}
If I do not have access to no workspaces I would expect empty list.
D.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |