Forum Discussion

cporteous's avatar
cporteous
Most Valuable Professional
8 years ago
Solved

Gateway info from Power BI API in PowerShell

Hi,   So Ive got all manner of data out of the Power BI REST API using PowerShell, using both a Native & Web app.   Im trying to hit this API and getting a 401 across the board though I got it wo...
  • izurev's avatar
    izurev
    8 years ago

    Login to Azure portal with the user that you use for the API requests and navigate to the APP and then click on Required permissions and then click Grant Permissions. This will assign all permissions to that user (11 permissions for Power BI Service). That solved the issue for me.

     

    You may also need to generate a new login token for the user after that...

     

    Let me know if that worked for you.