Forum Discussion

THpubs's avatar
THpubs
New Member
1 year ago
Solved

Getting an error saying PowerBINotAuthorizedException when trying to embed PowerBI reports in an app

I created an Azure Entra app, gave the proper permissions and shared my reports with the account. I followed the following guides for this:

Now with the tokens proved by the Azure Entra app, I was able to successfully call the following endpoints:

But unfortunately, to embed the report, the most crucial endpoint I have to talk to is this one:

When I tried to call this endpoint with the same credentials, (With the token returned by https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token), it gives me the following error: PowerBINotAuthorizedException

Can't we embed a power BI report in our own website without providing the username password of a Microsoft user account? How to do it properly?

3 Replies