Forum Discussion

matisilver88's avatar
matisilver88
Frequent Visitor
7 years ago

Power BI oAuth 403 - Forbidden

Hi, i wan`t to integrate my own platform showing Power BI dashboards. For that, first i created an app on my Azure account, giving the permissions to: 

- Azure Active Directory Graph: Users.Read, Users.Read.All (Type: Delegated)

- Power BI Service: Full access. (Type: Delegated)

Then, I authenticated using grant type authorization_code flow oAuth protocol. As a result, I obtained an Access Token.

So, the following step, should be making a request to Power BI Api for getting the dashboard, like this:

HTTP GET https://api.powerbi.com/v1.0/{tenantId}/dashboards/{dashboardId}

Header: Authorization Bearer <token>

But i get a 403 response code, forbidden. 

Also, I checked the scopes which the Access Token has, and it seems to has only the Azure Active Directory Graph permissions. I don`t understand why it doesn`t have the Power Bi Service scopes too.

 

Thanks

 

No RepliesBe the first to reply