Forum Discussion
Power BI API help
- 4 years ago
Just to update this item. We created a ticket with Microsoft to get some help.
My API call in the screen shot was correct. We had some items in the admin side of Power BI we did not have setup. under the admin portal in Power BI, under Tenant Settings, make sure these options are turned on:
Also, we still had issues even after turning these on. We ended up removing all permissions from the SP and adding Microsoft graph read all permissions even though the api documentation says tenant.readall.
This worked for us. I hope it might help someone else.
Looks like I am good in that area:
As of right now I am looking to export the activity log for long term reporting purposes and the permissions are set based off that (Tenant.Read.All).
Hi wkmaylish ,
Did you want to get a list of audit activity events? You can refer the content in the following links to get it.
Getting Started with the New Power BI Activity Log API
Introducing the Power BI Activity Log
Intro to the Power BI Activity Log [with Olya M]
In addition, please review the reply of the following threads and check whether can resolve your problem.
Error accessing Power BI REST API: Admin - Get Activity Events using Service Principal auth
Power BI REST API - 401 Authorization error when using app secret/service principal (check the answer from @mkstr)
Best Regards