Forum Discussion
mamta-bmore
5 years agoFrequent Visitor
PowerBINotAuthorizedException :: Embed report via access token
I have requirement to access BI reports.. by programmatically deriving the access token so that users doesn't have to signup in order to view the reports. I followed the link https://docs.mic...
ibarrau
Super User
5 years agoHi. That means that your App registered doesn't have the permission to do that action. Be sure that you have all the permissions for the App. When login with Service Principal that's all.
https://docs.microsoft.com/en-us/power-bi/developer/embedded/generate-embed-token#access-level
If you are login in with an Azure AD Account then don't forget that "Your master user or an administrator has to grant consent for your app to access Power BI REST API permissions (also known as scopes). For example, Report.ReadWrite.All."
I hope that helps,