Forum Discussion
Admin API for Service principle
Hi soldous ,
Please review the content in the following links, hope they can help you.
Use Power BI API with service principal
Power BI REST API - 401 Authorization error when using app secret/service principal
Power Bi REST API - 401 Authorization error when using Service Principals
Best Regards
- soldous5 years agoAdvocate II
Hi Anonymous ,
I did everything exactly as described in the first link. The second two links don't contain current/relevant information. One is about embedding - I don't want to embed anything I just need to call the admin API. The second contains old information. Now it should be possible to call the admin API with the service principle.
Thanks a lot.
- Anonymous5 years agoNot applicable
Hi soldous ,
Sorry for delay. Could you please check whether you complete the following settings?
1. Allow service principals to use Power BI APIs in Admin portal
2. Add the related service principal as admin in the workspace which the report located in
If it still not working after set the above settings, please use this link to test it and provide me the request body for later troubleshooting. Thank you.
Best Regards