Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
matisilver88
Frequent Visitor

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

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.