Forum Discussion
Embedding Service principle AppOwnsData 401 ServicePrincipalIsNotAllowedByTenantAdminSwitch
Could you please share how did you fix the issue, i'm getting the same response back from the power bi apis "ServicePrincipalIsNotAllowedByTenantAdminSwitch"
I added the service principal as an admin to my workspace but it's still not working
I'm sorry but I don't remember, I think it was granting the User (service principal) permissions to the workspace https://docs.microsoft.com/en-us/rest/api/power-bi/groups/addgroupuser
- vince-koch6 years agoNew Member
I was able to resolve it by going to Power BI Admin portal (accessible from settings cog on https://app.powerbi.com/home), selecting Tenant Settings, and then toggling the Allow service principals to access Power BI APIs setting to enabled
See the Getting started with service principal section in this article https://powerbi.microsoft.com/en-us/blog/use-power-bi-api-with-service-principal-preview/
- ShpxLbh1 year agoFrequent Visitor
in my case - I lost 5 hours to cope with that.... I made some stupid but obvious change...
turn off service principal api in power bi admin, then turn on again.
THANKS MICROSOFT FOR SUPER CLEAR AND INTUITIVE SYSTEM....