Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Power BI Get Activity Events API Error

I am trying to get the activity data from the Power BI REST APIs, using the Get Activity Events API call. Following the solution shown in the video: https://bielite.com/blog/building-a-power-bi-admin-report/

However, I keep getting the below error:

Expression.Error: The 'Authorization' header is only supported when connecting anonymously. These headers can be used with all authentication types: Accept, Accept-Charset, Accept-Encoding, Accept-Language, Cache-Control, Content-Type, If-Modified-Since, Prefer, Range, Referer

 

 

I am authenticating anonymously using the app which has tenant ready and write application permissions.

 

Appreciate if you can provide an guidance on how to fix this error. Below are the screenshots of my functions and query.





 

 





  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    Please make sure your data source connection for the link is set as annonymous.

    Steps : File > Option and settings > Data source settings

    Then find the permission and Edit Permissions to check whether the connection type for the credential is anonymous.

    It should look like as below.

     

    Best Regards,
    Rico Zhou

     

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

     

     

     

     

     

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Please make sure your data source connection for the link is set as annonymous.

    Steps : File > Option and settings > Data source settings

    Then find the permission and Edit Permissions to check whether the connection type for the credential is anonymous.

    It should look like as below.

     

    Best Regards,
    Rico Zhou

     

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