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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
GhelPlus
Regular Visitor

https://api.powerbi.com/v1.0/myorg/' (404): Not Found Get Activity Events

Hello, I'm bringing user activities to power bi, on my machine it's working correctly, but when I configure the link on the gateway: https://api.powerbi.com/v1.0/myorg/ I have a 404 error I already gave admin permissions for power bi was purchased Premium to test and still didn't work

 

GhelPlus_0-1651752255566.png

GhelPlus_1-1651752308392.png

 

I already did this on another client and it worked perfectly, I even contacted them to check the permissions, but I believe there is still some permission to be given.

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @GhelPlus 

First, you need to make sure you have the following required permissions and scopes, and check if you hit any of following limitations.

vluwangmsft_0-1652078330414.png

 

After check the above info are OK, please try to update the API with the parameters. In the ActivityEvents REST API call, you must specify a start date and end date and optionally a filter to select activities by activity type or user ID. Because the activity log could contain a large amount of data, the ActivityEvents API currently only supports downloading up to one day of data per request. In other words, the start date and end date must specify the same day, as in the following example. Make sure you specify the DateTime values in UTC format. You can get the details from the following documentation:

ActivityEvents REST API

https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime='2021-12-21T00:00:00'&endDateTime='2021-12-21T23:59:59'

 

Finally, check out the solution in the following thread with similar problem to yours, and hopefully it will solve your problem as well.

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

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 ! 

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

 

View solution in original post

2 REPLIES 2
GhelPlus
Regular Visitor

Hey

 

all permissions granted, it's giving this error now

 

thanks

Erro bi.png

v-luwang-msft
Community Support
Community Support

Hi @GhelPlus 

First, you need to make sure you have the following required permissions and scopes, and check if you hit any of following limitations.

vluwangmsft_0-1652078330414.png

 

After check the above info are OK, please try to update the API with the parameters. In the ActivityEvents REST API call, you must specify a start date and end date and optionally a filter to select activities by activity type or user ID. Because the activity log could contain a large amount of data, the ActivityEvents API currently only supports downloading up to one day of data per request. In other words, the start date and end date must specify the same day, as in the following example. Make sure you specify the DateTime values in UTC format. You can get the details from the following documentation:

ActivityEvents REST API

https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime='2021-12-21T00:00:00'&endDateTime='2021-12-21T23:59:59'

 

Finally, check out the solution in the following thread with similar problem to yours, and hopefully it will solve your problem as well.

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

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 ! 

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Kudoed Authors