Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Power BI - Export Report via Power Automate with Row Level Security

Hi, 

 

I am trying to export a Power BI report using the "Export to File for Power BI Reports" action via Power Automate but I am having an error "Only folder user with reshare permissions can generate embed token" when I specified the Identities Username, Dataset and Role.

 

I am passing the email id of any member under the same role (RLS) as the Identities Username when I encounter this error. I am wondering if I am passing the right username? Or should I pass the email id of one Master User with given sets of permission (Admin, Member, or Contributore with Reshare permission)?

 

Note: Service Principal cannot be used in this scenario.

 

Thank you in advance. 

 

 

2 ACCEPTED SOLUTIONS
AmosHersch
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

I don't think this specific error message is related to the values you provide in the identities.

Sounds to me as if it's related to the permissions of the user who runs the flow in Power Automate. What permissions does he have in the folder of the report and dataset? Viewer/Member/Admin?

View solution in original post

Anonymous
Not applicable

We found out the reason. The "Export to File for Power BI Reports" action is running in the context of the user who executes the flow instead of the connector's account. This is different from the other action who takes the context of the connector's user account instead. 

View solution in original post

4 REPLIES 4
AmosHersch
Microsoft Employee
Microsoft Employee

As far as I know it depends on the connection you choose for the Power Automate step which calls the API.

I would try with a user which is a member or an admin in the relevant Power BI workspace.

Anonymous
Not applicable

We found out the reason. The "Export to File for Power BI Reports" action is running in the context of the user who executes the flow instead of the connector's account. This is different from the other action who takes the context of the connector's user account instead. 

AmosHersch
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

I don't think this specific error message is related to the values you provide in the identities.

Sounds to me as if it's related to the permissions of the user who runs the flow in Power Automate. What permissions does he have in the folder of the report and dataset? Viewer/Member/Admin?

Anonymous
Not applicable

Hi @AmosHersch 

 

Thanks for your reply. 

 

A service account is the identity of the Power BI connector used to trigger the "Export to File for Power BI Reports" action. The service account has only Contributor role. Does it mean that the permission is based on the authenticated user of the Power BI connector?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.