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.
thats already good information. can you call them from Data Factory?
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 Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.