web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue with flow runnin...
Power Automate
Answered

Issue with flow running in power app for other users

(0) ShareShare
ReportReport
Posted on by 55

I've made a leave request app for staff, I've tested it and it all works, but once I have someone else try and use it they receive this error when they hit submit which should trigger the flow. 

CP93_0-1691711237006.png

 

 

Any ideas?

Categories:
I have the same question (0)
  • ChadVKealey Profile Picture
    1,393 on at

    I'd suggest using Monitor to get more information about what's causing the error. See https://learn.microsoft.com/en-us/power-apps/maker/monitor-overview

     

    If it works for you, but not others, I suspect it's something to do with permissions. Do the other people using the app have access to the data sources it's using? Sharing the app doesn't automatically share those sources, and flows triggered from an app will ALWAYS run in the context of the user of the app. 

  • CP-93 Profile Picture
    55 on at

    Thanks,

     

    most of the data sources are using my account, but when I tried changing them to a service account the flow would fail because it was using the service account for the get manager function instead of which user had filled in the app fields

     

     

  • ChadVKealey Profile Picture
    1,393 on at

    If you mean the "connection" in each action in the flow, that's irrelevant for a flow that's triggered from an app. When the app is shared, the flow is shared with it, effectively making the app users "run only" users of the flow. When you add "run only" users to other types of instant flows (e.g.: "For a selected item" in SharePoint), you can specify whether the flow will use the connections defined in the flow, or the connection of the run only user. When a flow runs from a Power App, you cannot designate which connection will be used; it will always be the connection of the person currently using the app, regardless of what connection you set in the flow. So, unless the users are signing into the app with the credentials of that service account (which they probably should not be doing), the flow is running as them. 

  • CP-93 Profile Picture
    55 on at

    Thanks for such a detailed response! So do users need to be given access to the flow or are you saying just by using the app they’re given run only rights?

  • Rajat Awasthi Profile Picture
    37 on at

    Hi @CP-93 ,
    Do you have the failed Flow run log. Can you please share us with that. I believe there is something wrong with tables access you are using in the Power Automate. Failed flow run would have captured the failed step and error.

  • ChadVKealey Profile Picture
    1,393 on at

    You don't need to explicitly share the flow, but you do need to share the data source(s). So, if users of the app will be creating or editing items in a SharePoint list, they need appropriate permissions to that list. The easiest option is to give them Contribute access. However, this also allows them to directly access and edit data in the list, which (in most cases) app designers would like to prevent. There are various tricks to prevent that direct access, but many are "smoke & mirrors" or "security by obscurity". The most effective method I've found is using a custom permission level. See this video for more details: https://youtu.be/x06Qag5YaZs

  • CP-93 Profile Picture
    55 on at

    It seems like the flow isn't being triggered when other users hit submit..only me? 

  • nsyyoung Profile Picture
    6 on at

    I had the same problem, but it went away when I explicitly shared the app with my user.  She had access to the data sources, the site, and the app, but the flow wouldn't run until I actually shared the app with her.

     

  • Verified answer
    CP-93 Profile Picture
    55 on at

    It turned out that you need to use power apps V2 as the trigger this gives you the option to have 'Run as Only' users.

    CP93_0-1701989111175.png

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard