Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
I have a use case in which I need a defined group of users to be able to have view access to a Power BI report which will contain the Power Automate button visual to trigger a flow. This flow will export a defined page (which will be hidden) to PDF. Afterwards, the flow should send an email to the user containing the exported PDF file. I have tried testing the flow and it works perfectly as long as the user has access to the workspace the PBI report is published in. However, once the access to the workspace is removed (maintaining read only access to the report), it breaks, returning the following error:
{"error":{"code":"PowerBINotAuthorizedException","pbi.error":{"code":"PowerBINotAuthorizedException","parameters":{},"details":[],"exceptionCulprit":1}}}
I imagine this has to do with the permissions concerning the workspace access. However, I am confused because a coworker who was working on a different project managed to achieve what my time is trying to do, but instead of integrating the button within Power BI, their Power Automate flow is triggered via a button in a Power Apps application (more specifically, the button triggers a flow which exports the pdf of a paginated report from a report and saves it in a sharepoint folder the user has access to).
I am wondering why I get the permissions error in my case, but in my coworker's case it works? And/or if anyone has any workarounds to my problem? Thanks in advance.
Solved! Go to Solution.
Hi @dmriv ,
Thank you for reaching out to the Microsoft Community Forum.
You are running into some permission issues when trying to export a Power BI report to PDF using Power Automate. The error message "PowerBINotAuthorizedException", typically indicates that you are attempting to run the flow does not have the necessary permissions on the Power BI workspace where the report resides.
Please try below things to fix the issue.
1. Create a service account with access to the workspace. Use Power Automate with Power BI REST API and Azure AD app registration to authenticate as the service account. The flow runs under the service account, not triggering user.
2. If feasible, convert your report page to a Paginated Report, It support more flexible export options and can be triggered without requiring workspace access for the end user.
3. Embed the Power BI report in a Power Apps app. Use a Power Apps button to trigger the flow. The flow can run under a fixed connection, bypassing user permission issues.
4. Save the exported PDF to a SharePoint folder the user has access to. Send a link to the file instead of attaching it directly.
5. Publish the report as part of a Power BI App. Grant users access to the app and workspace via App permissions, which might help depending on your tenant setup.
I hope this information helps. Please do let us know if you have any further queries.
Regards,
Dinesh
Hi @dmriv ,
Thank you for reaching out to the Microsoft Community Forum.
You are running into some permission issues when trying to export a Power BI report to PDF using Power Automate. The error message "PowerBINotAuthorizedException", typically indicates that you are attempting to run the flow does not have the necessary permissions on the Power BI workspace where the report resides.
Please try below things to fix the issue.
1. Create a service account with access to the workspace. Use Power Automate with Power BI REST API and Azure AD app registration to authenticate as the service account. The flow runs under the service account, not triggering user.
2. If feasible, convert your report page to a Paginated Report, It support more flexible export options and can be triggered without requiring workspace access for the end user.
3. Embed the Power BI report in a Power Apps app. Use a Power Apps button to trigger the flow. The flow can run under a fixed connection, bypassing user permission issues.
4. Save the exported PDF to a SharePoint folder the user has access to. Send a link to the file instead of attaching it directly.
5. Publish the report as part of a Power BI App. Grant users access to the app and workspace via App permissions, which might help depending on your tenant setup.
I hope this information helps. Please do let us know if you have any further queries.
Regards,
Dinesh
Hi @dmriv ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.
Regards,
Dinesh
Hi @dmriv ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.
Regards,
Dinesh
Hi @dmriv ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.
Regards,
Dinesh