Forum Discussion
soldous
5 years agoAdvocate II
Admin API for Service principle
With the preview feature of enabling service principal authentication for read-only admin APIs https://docs.microsoft.com/en-us/power-bi/admin/read-only-apis-service-principal-authentication I'm tryi...
AlexZ
5 years agoFrequent Visitor
Hi Soldous,
I've managed to get this working for me.
According to this Enable service principal authentication for read-only admin APIs (preview)
The app registration should't have any permissions set requering admin conset.
I followed a couple online tutorials so I ended up with a app registration that had all the permission set on all the Power BI Scopes.
Once I removed the permissions it just worked as expected.
To get the access token I use the tenant specific endpoint as described in my previous answer. But I don't think that will matter.
Hope this will work for you to.
- soldous5 years agoAdvocate II
Hi AlexZ,
for me still PowerBiNotAuthorizedException 😕
but many thanks for providing your approach.