Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
Solved! Go to Solution.
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.
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |