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.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
1 | |
1 | |
1 | |
1 |