Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unauthorized error 401 for power reports embedding

I am trying to Embedding my Power Bi Reports in my MVC application using the following link https://learn.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers and i am able to get the access_token but unable to retrieve the dashboards or reports based on Group Id because of 401 Unauthorized error.

Let me know what I am doing wrong.

like image 830
user3301440 Avatar asked Feb 22 '26 18:02

user3301440


1 Answers

I faced the exact same issue during my Power BI Embedded implementation. The issue in my case was that adequate Permission were not granted for the registered app in Azure Active Directory. Please ensure you have performed the following steps:

  1. Register your App (Native or Web App) in Azure Active Directory under App Registrations. Or use the Power BI Developer Console to do that - Azure Active Directory Preferred
  2. Added the Power BI API to the registered app from Permissions Option.
  3. Select and Delegate all the required permissions for the Power BI API
  4. Most Important Grant All Permissions to the Registered App. If you don't have Admin Access to Azure Portal, you will not able able to grant the permissions

More details can be found here.

like image 92
Atulmaharaj Avatar answered Feb 25 '26 07:02

Atulmaharaj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!