Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Error accessing Power BI REST API: Admin - Get Activity Events using Service Principal auth

Hello,   I try to access the Get Activity Events using Service Principal auth with Python. I did succesfully manage to obtain the token, however using below's code I get the following error upon r...
  • Anonymous's avatar
    Anonymous
    5 years ago

    we had the same issue and after investigations with MS support we found out that the Admin Consent should be removed from the app permissions.  Once removed the 

    PowerBINotAuthorizedException

    error was gone !

     

    Hope it helps ?