Forum Discussion
andymc
5 years agoFrequent Visitor
Using a Service Principal for the Activity Events API
Hello, I have been setting up a proof of concept on accessing Activity Events API using a Service Principal account. I have worked out most of the issues but am currently getting the error code ...
- 5 years ago
After a lot of trial and error I have finally solved the issue. I am not entirely certain why this is the case but when I remove all references to Power BI API calls from Azure API Permissions setup in the Azure App Registration the call works.
mbutler71
Advocate I
4 years agoThis does actually work. I also removed all of the permissions of a Service Principal I wasn't using and tried to call the Power BI Admin Activity Events API, and it got back the report usage data.
- VSmart3 years agoFrequent Visitor
Remove Tenant.ReadAll and Tenant.ReadWriteAll. It writted in documentation. https://learn.microsoft.com/en-us/rest/api/power-bi/admin/get-activity-events#permissions