Forum Discussion
Export-PowerBIReport Forbidden with Service Principle
- 4 years ago
I figured this out. Along with the admin portal/developer setting api permissions for service principals, they also need to be granted the permissions to download .pbix files:
Hi powerbi_jenhen ,
First, please check whether you enable the following Power BI service admin settings in Admin portal:
1. Allow service principals to user Power BI APIs
2. Allow service principals to use read-only Power BI admin APIs
Then make sure that grant the access to the the workspace which the report located in with memeber or admin role.
And please check whether hit any following limitation of downloading a .pbix from a report
In addition, the following is the threads which has the same problem with yours. Hope they can help you.
Allow Export-PowerBIReport Is not working as admin #65
Permissions needed for Service Principal #51
Service Principle cannot Get-PowerBIWorkspace
Best Regards
- powerbi_jenhen4 years agoResolver II
My service principle has access to all Power BI Service scopes within our AAD application also