Forum Discussion
Service Principal support for read-only Admin APIs - Documentation issues
- Anonymous4 years ago
Hi DebbieE
Service principal is an authentication method that can be used to let an Azure AD application access Power BI API. You can use Service Principal to get access token from Power BI. Then use this access token to authenticate to get data from Power BI Rest API.
Here is a blog about how to get token by postman by Password. If you want to use Service principal, change Password to Credential and update parameters (Client_Secret and Tenant_ID)in other body.
For reference: get token by postman.
Then you can succeed to connect to Rest API by access token.
Here is the Rest API this function supports.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I have set up every thing according to this: https://docs.microsoft.com/en-us/power-bi/admin/read-only-apis-service-principal-authentication
I have security group and app registration created, along with security group added to Power BI setting
Allow service principals to use read-only Power BI admin APIsWhat do use to get access token or how do I call the Power BI Admin APIs?