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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.