Forum Discussion
micpol
5 years agoFrequent Visitor
Power BI REST API - retrieving activity events returns 403 / "API is not accessible for application"
Hello, I am trying to get activity logs using a Power BI secrvice principal. Once a valid access token is retrieved, it is possible to use the Power BI REST API for example to get the groups (GET...
Jithendra-Vetup
1 year agoNew Member
Hi Anonymous
I know it might seem super counterintuitive, but here's what you need to do: remove all API privileges for the service principal. Azure somehow associates the role within the token, and that’s the issue.
To troubleshoot, double-check your token using this tool.
Here’s the step-by-step process to resolve the issue:
- Remove all privileges for the service principal.
- Add the service principal to a new security group.
- Go to the Power Admin portal -> Tenant Settings -> Admin API Settings, and add the newly created security group there.
This should resolve the issue.
Cheers !