cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rossnruthie
Resolver I
Resolver I

Authorization error when trying to Embed using sample for Non PBI Users

I am currently try to create a sample embedded report to show our team and I am getting an error.  

 

I am following the Embed a Dashboard tutorial as a guide.  Because our use case dictates having embedded reports for Non powerBI users I have registered an app in NATIVE mode using https://dev.powerbi.com/apps.  It has given me a client id which i then plugged into the PowerBIEmbedded_AppOwnsData project along with the GroupId and my UN/PW.

 

When I fire up the project and click on the "Embed Dashboard" button I get the following error:

 

"error":"invalid_grant","error_description":"AADSTS65001: The user or administrator has not consented to use the application with ID...

Send an interactive authorization request for this user and resource

 

What am I missing here?

 

Thanks.

 

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft
Microsoft

@rossnruthie

@pmathew2000

Please go to Azure portal, login with the User used when registering the app. Then find the registered Azure app.

Capture.PNG

 

Then edit required permisson, select all checkboxes for Power BI Services and click Save. At last, click Grant Permission and click yes.

Capture2.PNG

View solution in original post

3 REPLIES 3
Eric_Zhang
Microsoft
Microsoft

@rossnruthie

@pmathew2000

Please go to Azure portal, login with the User used when registering the app. Then find the registered Azure app.

Capture.PNG

 

Then edit required permisson, select all checkboxes for Power BI Services and click Save. At last, click Grant Permission and click yes.

Capture2.PNG

View solution in original post

Thank you @Eric_Zhang this worked for me!

 

FYI, I had gone through all of these steps selecting and saving all of the delegated permissions.  I missed the last step though of clicking on the Grant permissions button.  It's a bit confusing since I checked the boxes and clicked save.  I would have thought this granted permisions but apparently it is not the case.

Capture.PNG

pmathew2000
Frequent Visitor

I am getting the same error

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors