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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.