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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mavawie
New Member

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 for my organization.

 

When I embed a standard report, it's working as expected and the report will show. I purchased a premium PPU license for my user, assigned it to my user and also created a new workspace in Power BI with the correct PPU license setting, admin access for the service principal I am using (which is also a member of the Entra ID group that has been allowed access to the Power BI APIs) and admin access for my user as well. I then downloaded the sample Power BI paginated reports from GitHub provided by Microsoft (see https://learn.microsoft.com/en-us/power-bi/paginated-reports/paginated-reports-samples) and imported those into my new workspace. I can view the imported paginated reports in app.powerbi.com but when I try and embed the same reports using the powerbi-client JS SDK, I see the Power BI logo briefly loading, before I receive the message "It looks like you don't have access to this report". In the console I can see that the underlying error is "PowerBINotAuthorizedException".

 

Thank you in advance for your support!

 

PS I have seen https://community.fabric.microsoft.com/t5/Developer/PowerBINotAuthorizedException-When-Embedding-Pag... but the solutions provided there did not fix my issue.

1 ACCEPTED SOLUTION
mavawie
New Member

I actually found, that things start working, when I get the report's embedUrl from the REST API (using "https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}") where I was using the "default" embedUrl before (using https://app.powerbi.com/reportEmbed?reportId={reportId}&groupId={groupId}.

View solution in original post

1 REPLY 1
mavawie
New Member

I actually found, that things start working, when I get the report's embedUrl from the REST API (using "https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}") where I was using the "default" embedUrl before (using https://app.powerbi.com/reportEmbed?reportId={reportId}&groupId={groupId}.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.