Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |