Reputation: 850
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.
Upvotes: 3
Views: 8390
Reputation: 74
Another step that I also had to do for manually creating the security group, is to add the service principal (application in application registration) into the security group in Azure AD.
The PowerShell example does that for you, but the manual step does not describe it.
Upvotes: 0
Reputation: 61
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:
More details can be found here.
Upvotes: 5