Forum Discussion
pontushaglund
5 years agoHelper I
401 error trying to fetch Power BI Activity Log
I'm trying to use the Power BI REST API to fetch Power BI Usage Reports using a service principal. When using PowerShell I can fetch the reports using a user/password that has MFA turned on. My custo...
lbendlin
5 years agoSuper User
I assume your organization's IT team do not want to give these admin rights to a service principal login?
pontushaglund
5 years agoHelper I
I now tried adding the service principal to the role Power BI Admin in the Azure portal. This did not help, still getting 401 error.
This user is also part of a security group:
I've also allowed access for this security group in the Power BI portal: