Forum Discussion

Patan's avatar
Patan
Regular Visitor
6 years ago

https://api.powerbi.com/v1.0/myorg/dashboards return 403 forbidden

I have created an app through app-registrations (tried both Nativ/web app).
I am using v2-oauth2-client-creds-grant-flow to get the access-token for the app that I have created. 
I am able to get a valid token, but when I am trying invoke the API call to get the List of Dashboards postman is returning HTTP Error 403: Forbidden.
In Azure AD, I enabled the delegated permissions and application permissions as shown below also performed the grant-consent through admin. 
 
But when I am referring to the API https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/getdashboards, where in we will get the try-it option and there it is asking for my credentials and using that access-token I am able to get the list of dashboards working without any issues.

 

Here's what I've validated/tried:

  • The AD User we've created the app under is not the global admin as recommended.
  • The user is a power bi pro user (trial).
  • The required permissions (Windows Azure Active Directory/Power BI Service) have been granted (we've checked off all to ensure we're not missing anything).
  • We've validated/confirmed the client ID, secret key and group id many times.

Thank you in advance!

No RepliesBe the first to reply