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
ptkhoa2110
Helper II
Helper II

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

HI @ptkhoa2110,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @ptkhoa2110,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Dear @v-shex-msft ,

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.

 

 

HI @ptkhoa2110,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.