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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.