Forum Discussion

MD39's avatar
MD39
New Member
2 years ago
Solved

Rest API Access token using OAuth Token

I'm trying to pull data using basic REST API calls, for example, https://api.powerbi.com/v1.0/myorg/admin/reports. When I go through https://learn.microsoft.com/en-us/rest/api/power-bi/admin/reports-...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi  MD39 ,

     

    Based on my testing, even if you successfully generate an AAD token, the content permissions that your token can access are still determined by the value defined in the scope parameter, so if you want to run the Power BI API, you can try to define and fill in the scope parameter with this value

    https://analysis.windows.net/powerbi/api/.default

    At the same time, you can also make sure that the required scope of the application used to generate the token has been filled in using the delegated.

     

    Best Regards,

    Liu Yang

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