Forum Discussion

ubersparky's avatar
ubersparky
New Member
3 years ago
Solved

PowerBI API Returns "PowerBINotAuthorizedException" despite permissions

Hi - I am trying to access the API to download usage statistics from PowerBI and integrate with other reports. When I run the below code       import requests import json base_url = "https://ap...
  • mariussve1's avatar
    3 years ago

    When you use the admin api you need to grant access to this in the tenant admin. Because you use service principal this need to be added in a security group, and this group needs to be granted admin api access in the tenant admin portal.

    When this is done, I,ve experienced it can take up to 20-30 min before it works.

     

    Br

    Marius