Can't get client-credentials access token to authorize Power BI

后端 未结 4 1055
梦谈多话
梦谈多话 2020-12-06 16:48

I\'m trying to use the Power BI REST API, using an access token acquired with the \"client credentials\" method, but I keep getting 403 Forbidden on my requests

4条回答
  •  余生分开走
    2020-12-06 17:13

    So I tried this with my own app, the following command works (for me):

    curl -vv -X GET https://api.powerbi.com/v1.0/myorg/datasets -H"Authorization: Bearer ey....qqqq"
    

    BTW, the extra "v" after -v seems redundant.

    So what I can conclude is that your application is missing the required permissions to call Power BI's APIs.

    One thing you might try is grab one of our samples, create a new application in AAD for it, and then see if the authorization token works for it. Here's a good one to try: https://github.com/PowerBI/Integrate-a-tile-into-an-app

提交回复
热议问题