Forum Discussion
VSmart
3 years agoFrequent Visitor
Get 401 Error when try to Get Activity Events (Audit Logs)
I'm trying to get Power BI audit logs using service principal. I follow every step in creating Azure principal Embed Power BI content in an embedded analytics application with service principal and ...
VSmart
3 years agoFrequent Visitor
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
PravinPCUK
11 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.