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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Power BI Services API, need help

Dear All,

 

I want to get information my report (ID, Link,....) from API (Refer: https://docs.microsoft.com/en-us/rest/api/power-bi/groups/getgroups#code-try-0) by my website portal, I have license pro Powerbi.

 

Frist, I user Microsoft Graph for login and get token successfully.

  • This is my scopes 'openid profile offline_access user.read Mail.Send', I also import:
    • Microsoft Graph with Mail.Send, openid, User.Read on Azure Portal

Second, When I add in scopes Workspace.Read.All for read workspace PowerBi, the Microsoft Graph can't understand, my webste show error

AADSTS650053: The application 'PHP Graph Tutorial' asked for scope 'Workspace.Read.All' that doesn't exist on the resource '00000003-0000-0000-c000-000000000000'. Contact the app vendor.

I guess Power BI Services is different package of Microsoft Graph. So how can I user Power BI Services for my website.

I refer Laravel for Microsoft Graph here: https://docs.microsoft.com/en-us/graph/tutorials/php

 

Many thanks for your support.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

I can't find the dataset relate settings on your snapshot, have you enabled them in your azure settings?

The error message seems related to it, maybe you can try it enabled it before the test.

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @Anonymous,

According to your description, it sounds like you are trying to use MS graph toknes to work with power bi rest API.
AFAIK, these API seems not include in MS graph packages. Please check the following link to register the AAD application and confirm its permission on azure site for power bi rest API usage:

Register an Azure AD application to use with Power BI 
Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Dear @Anonymous ,

I have import SCOPES but it show error: 

image.png

I already add scope in my Azure Port here: 

ptkhoa2110_0-1616049419918.png

Many Thanks.

 

 

Anonymous
Not applicable

HI @Anonymous,

I can't find the dataset relate settings on your snapshot, have you enabled them in your azure settings?

The error message seems related to it, maybe you can try it enabled it before the test.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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