Forum Discussion
Using a Service Principal for the Activity Events API
- 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.
HI andymc,
AFAIK, these logs are pull from audit logs, have you enable this feature before the test?
Track user activities in Power BI - Power BI | Microsoft Docs
In addition, this is one of the admin rest API. it was different from common rest APIs and it requires additional admin permission to use.
For this scenario, I'd like to suggest you check the test account settings to confirm it has enough permissions.
The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) to call this API or authenticate via service principal.
Regards,
Xiaoxin Sheng
- andymc5 years agoFrequent Visitor
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.