Forum Discussion
Operation returned an invalid status code 'Unauthorized'
I am trying to embed power BI report but i get the following error
- I have changed the web config file
- I have given access for service principal to access power BI
- I have given access to all PowerBI service API
- I have added my app name in Workspace access.
Still I get this error. Please help me on this.
- Anonymous4 years ago
Hello,
Thanks for the reply, I did.
However when I create the app through Azure Active directory->App registrations it doesn't throw an error. When I create it directly from azure portal it doesn't work. Maybe it's organisation's security rules.
2 Replies
- v-chenwuz-msftCommunity Support
Hi Anonymous ,
Did you add "Content.Create" API permission to the application registered in AAD. A similar problem is addressed in this post, please refer to Solved: Operation returned an invalid status code 'Unautho... - Microsoft Power BI Community
Or you can follow the official article to do it.
Embed content in your Power BI embedded analytics application - Power BI | Microsoft Docs
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AnonymousNot applicable
Hello,
Thanks for the reply, I did.
However when I create the app through Azure Active directory->App registrations it doesn't throw an error. When I create it directly from azure portal it doesn't work. Maybe it's organisation's security rules.