Forum Discussion

DebbieE's avatar
DebbieE
Community Champion
4 years ago
Solved

Service Principal support for read-only Admin APIs  - Documentation issues

Im attempting to look into the September 2021 Update -Service Principal support for read-only Admin APIs and have hit lots of issues with the documentation that I want to iron out.    "Service prin...
  • Anonymous's avatar
    Anonymous
    4 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 Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.