Forum Discussion
Get 401 Error when try to Get Activity Events (Audit Logs)
Hi VSmart,
Perhaps you can take a look at the following link that mentions about the similar issues:
Solved: Using a Service Principal for the Activity Events ... - Microsoft Power BI Community
Regards,
Xiaoxin Sheng
Thank you error disappear when i 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
- Anonymous3 years agoNot applicable
HI VSmart,
I'm glad to hear you find the root causing and share the resolution here, they will help others who faced the similar issues.
Regards,Xiaoxin Sheng
- PravinPCUK11 months agoNew Member
I have tried this. Removed all the admin-consent required from API permissions. Still getting 401 error for activity events data.
- I have added my Service Principal security group in "Service principals can call Fabric public APIs" & "Service principals can access read-only admin APIs" in PBI Service Admin portal,
- Assigned Fabric Admin role to API security group
But still getting 401 error for activity events. I'm able to get the reports/datasets list though.
Let me know if I'm doing anything wrong.