Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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.

gb2_0-1681237508130.png



gb2_1-1681237520633.png

gb2_2-1681237542123.png

 

gb2_3-1681237553521.png

 





1 ACCEPTED SOLUTION
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.

vrzhoumsft_1-1681370955002.png

It should look like as below.

vrzhoumsft_0-1681370703428.png

 

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.

 

 

 

 

 

View solution in original post

1 REPLY 1
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.

vrzhoumsft_1-1681370955002.png

It should look like as below.

vrzhoumsft_0-1681370703428.png

 

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.

 

 

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.