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...
shubh43
4 years agoAdvocate I
The URL in the Microsoft API documentation is wrong for service principals.
You need to also include the workspace ID in the URL, see below
https://api.powerbi.com/v1.0/myorg/groups/{WorkspaceID}/admin/activityevents)
- micpol4 years agoFrequent Visitor
HI Shubh43,
thanks for your reply.
I gave a try to that URL with a valid workspace ID, unfortunatlly it returned a 404 error.
Where did you get this URL from? Is it anywhere documented?
Best reagards,
Michal