Forum Discussion
Operation returned an invalid status code 'Unauthorized''
- Anonymous6 years ago
Hi nagaraj ,
Accoring to offical document, the account must be the admin of the related workspaces when you need to embeded report in the application. You can check the details in this documentation.
Best Regards
Rena
Hi Anonymous
Have already given access to all API's to the registered app.
Not sure any specific requests i need to provide at workspace level.
Regards
Nagaraj
Hi nagaraj ,
Accoring to offical document, the account must be the admin of the related workspaces when you need to embeded report in the application. You can check the details in this documentation.
Best Regards
Rena
- nagaraj6 years agoPost Patron
Hi Anonymous
Thanks for the inputs.
Service Principle we are using is already an ADMIN in the premium Workspace.
And myself is also an ADMIN on this workspace.
I have downloaded Power BI Dotnet sample (App Owns Data), using that solution i can see my report is getting embed successfully. But when i try the same from other solution i am getting the error. (FYI ... For the client credential i am using the application id and application secret of the APP that i registered. If i pass Service Principle ID and Secret then it is saying unauthorized on this tenant).
Looks like some settings need to be performed on the Workspace or may be on the application i registered.
Regards
Nagaraj
- Anonymous6 years agoNot applicable
Hi nagaraj ,
Hope the following documentations can help you:
https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-troubleshoot#authentication
https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal
Best Regards
Rena
- nagaraj6 years agoPost Patron
Hi Anonymous
Thanks for the help, there was some issue with Service Principle.
Resolved it and the issue got resolved. Thanks
REgards
Nagaraj