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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
skip2mylou
Regular Visitor

User's role in workspace to use Power automate flow to refresh the dataset in PBI

Hi, 

I have a Power Automate flow that when users click a button in a Power App, will trigger the flow to refresh a Power BI dataset in Workspace A. I have given users access to the Power BI App that was published from Workspace A. Is that enough for them to be able to trigger the refresh? Do I need to give users access as Workspace Viewer, or Contributor to be able to trigger that?

I would prefer not to, as I have sensitive data in the dataset (RLS has been implemented), so I don't want the user to be able to download the file (if given the Contributor role).

Thanks!

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @skip2mylou ,

To refresh a Power BI dataset via a Power Automate flow, the user or account used to refresh needs more permissions than just “Viewer” inside the workspace. If a user is in a particular Security Group and that group has ‘Viewer’ access to the app workspace, the flow fails saying the user doesn’t have sufficient permissions. If you change the access level to one higher i.e. ‘Contributor’ access to that Security group, then the users of that Security Group would have powers to delete content and access more information than needed because they should only have read access.

Refresh your Power BI dataset using Microsoft Flow | Microsoft Power BI Blog | Microsoft Power BI

 

A potential solution to this issue is to use a service principal. A service principal is an app registered for the organization and it doesn’t depend on a user. This way, you can manage higher level permissions without giving individual users unnecessary access.

Solved: Refresh Power BI Dataset using Power Automate (flo... - Microsoft Fabric Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @skip2mylou ,

To refresh a Power BI dataset via a Power Automate flow, the user or account used to refresh needs more permissions than just “Viewer” inside the workspace. If a user is in a particular Security Group and that group has ‘Viewer’ access to the app workspace, the flow fails saying the user doesn’t have sufficient permissions. If you change the access level to one higher i.e. ‘Contributor’ access to that Security group, then the users of that Security Group would have powers to delete content and access more information than needed because they should only have read access.

Refresh your Power BI dataset using Microsoft Flow | Microsoft Power BI Blog | Microsoft Power BI

 

A potential solution to this issue is to use a service principal. A service principal is an app registered for the organization and it doesn’t depend on a user. This way, you can manage higher level permissions without giving individual users unnecessary access.

Solved: Refresh Power BI Dataset using Power Automate (flo... - Microsoft Fabric Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.