Forum Discussion

mavawie's avatar
mavawie
New Member
9 months ago
Solved

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-Paginated-Report but the solutions provided there did not fix my issue.