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
techwing
New Contributor

PowerBINotAuthorizedException When Embedding Paginated Report (Service Principal Permissions)

I am encountering a "PowerBINotAuthorizedException" error when attempting to embed a paginated report within my React.js application.

Environment:

Power BI Service Workspace (access granted to service principal)
Paginated report created in Power BI Report Builder and published to Power BI Service
Azure AD Service Principal with the following app permissions:
App.Read.All
Dataset.Read.All
Dataset.ReadWrite.All
Report.Read.All
Report.ReadWrite.All
Issue:

The paginated report displays successfully within my Power BI Service workspace. However, embedding the same report in my React.js application results in the "PowerBINotAuthorizedException" error.

Troubleshooting Steps Taken:

Verified service principal permissions within Azure AD.
Double-checked workspace access for the service principal in Power BI Service.
Reviewed code for generating the embed token using the service principal access token.
Question:

Despite the seemingly sufficient permissions, why am I encountering this authorization error when embedding the report? What additional steps can I take to troubleshoot and resolve the "PowerBINotAuthorizedException"?

Additional Information:

(Include any relevant code snippets, error messages, or specific configurations if applicable)

Request for Assistance:

I would greatly appreciate any guidance or insights from the Microsoft community to resolve this embedding issue. Thank you for your time and assistance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @techwing ,

 

You can check the link below, which contains troubleshooting information similar to the error message:

Troubleshoot Power BI embedded analytics application - Power BI | Microsoft Learn

According to the error message, the reason may be โ€˜Wrong/unauthorized group ID.

You can try adding the userโ€™s โ€˜Refresh User Permissions.

Users - Refresh User Permissions - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Embed content in your Power BI embedded analytics application for your organization - Power BI | Mic...

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @techwing ,

 

You can check the link below, which contains troubleshooting information similar to the error message:

Troubleshoot Power BI embedded analytics application - Power BI | Microsoft Learn

According to the error message, the reason may be โ€˜Wrong/unauthorized group ID.

You can try adding the userโ€™s โ€˜Refresh User Permissions.

Users - Refresh User Permissions - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Embed content in your Power BI embedded analytics application for your organization - Power BI | Mic...

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mavawie
New Contributor II

This appears the accepted solution, but I'd like to better understand what exactly solved it. I have the same issue, but the proposed solution does not work. I can view the paginated report online in app.powerbi.com but when I embed it, I get "PowerBINotAuthorizedException". I can embed standard reports in the same workspace without issues. I am using one of the sample paginated reports from github (with an embedded dataset). I have upgraded my license to PPU and also updated the Workspace's license settings accordingly.

Helpful resources

Announcements
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.

Users online (244)