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

Community site session details

Session Id : z07MQJnqy7Po7LHV52EL1X
Power Apps - Building Power Apps
Answered

Users being asked to sign in when flows all have Run As users

Like (0) ShareShare
ReportReport
Posted on 22 May 2023 19:22:31 by 66

Hi

 

I'm deploying a new canvas app for users which has Power Automate flows that will run as my integration user, rather than as the users themselves.

 

I've set, double checked, and now triple checked that all flows have Run As users set for all connections. But when my users launch the app, they're being asked to sign into two of the five connectors themselves.

 

I've also tried sharing each of the flows with my own user to test if that had anything to do with it. But still I'm being asked to sign in.

 

What else should I check to ensure that my users won't have to sign in to any credentials when they use the app?

  • WarrenBelz Profile Picture
    149,223 Most Valuable Professional on 09 Jun 2023 at 09:40:47
    Re: Users being asked to sign in when flows all have Run As users

    Hi @nksse ,

    Interesting - how exactly do you use the manual trigger in this process - I assume you switch back to Power Apps V2 before you deploy ?

  • Verified answer
    nksse Profile Picture
    66 on 09 Jun 2023 at 08:14:30
    Re: Users being asked to sign in when flows all have Run As users

    Hey @WarrenBelz 

     

    Thought I'd share my success. I found a forum post (that I can't find again) which mentioned that only Flows triggered by the Flow button for mobile works with Run As users.

    nksse_0-1686298415192.png

     

    I had been using the Power App (V2) trigger. I changed my flows, refreshed them in the app, deployed the new version of the Solution to Production and it works!

  • nksse Profile Picture
    66 on 06 Jun 2023 at 08:19:08
    Re: Users being asked to sign in when flows all have Run As users

    Thanks again @WarrenBelz.

  • WarrenBelz Profile Picture
    149,223 Most Valuable Professional on 05 Jun 2023 at 21:04:37
    Re: Users being asked to sign in when flows all have Run As users

    Hi @nksse ,

    I must admit the Flows I have done have been connected "live" (out of business hours with the fall-back of versioning and flow backup) for probably the reason you are experiencing.

  • nksse Profile Picture
    66 on 05 Jun 2023 at 12:34:35
    Re: Users being asked to sign in when flows all have Run As users

    Hi again @WarrenBelz 

     

    Unfortunately this issue has reared it head again. This time I've made sure that before exporting my app from staging I:

    1. Made sure each flow had the run as users set to my integration user
    2. Refreshed EVERY flow in the App itself
    3. Exported the unmanaged solution as a managed solution
    4. Imported it into our production environment

    However, after importing I noted that not all the Run As users are set in all flows; there were definitely some I had to re-add in production. But the canvas app can't be edited in production, therefore I can't try refresh the flows there.

    Therefore, my suspicion is that the production app is not seeing the newly set Run As users.

    Any ideas?

  • nksse Profile Picture
    66 on 24 May 2023 at 14:08:45
    Re: Users being asked to sign in when flows all have Run As users

    Thanks @WarrenBelz.

     

    That seems to have been the issue. The steps I think fixed the issue were:

    1. Ensure all flows in staging have Run As users set
    2. Refresh all flows in the canvas app (I assume this step loads the 'new' config into the app)
    3. Export the app from staging and re-import the new version to production
  • Verified answer
    WarrenBelz Profile Picture
    149,223 Most Valuable Professional on 23 May 2023 at 08:49:56
    Re: Users being asked to sign in when flows all have Run As users

    Hi @nksse ,

    The other part of the question was if you did this before you attached the Flow. If not, you need to get those connections out of the App as they will still be there. I have apps with the same settings in Flows which work fine as long as the Flow is added after the connections are configured.

  • nksse Profile Picture
    66 on 23 May 2023 at 08:31:45
    Re: Users being asked to sign in when flows all have Run As users

    Hi @WarrenBelz 

     

    I've set the Run As user on the Details page of each flow. In this flow, the integration user (crossed out in blue) built the flow and shared it with me (crossed out in green).

    nksse_0-1684830635401.png

    When I launch the app as the me, it wants me to sign in to create two connections.

  • WarrenBelz Profile Picture
    149,223 Most Valuable Professional on 22 May 2023 at 20:40:54
    Re: Users being asked to sign in when flows all have Run As users

    Hi @nksse ,

    As you using the Power Apps V2 connection then Run Only Users then Use this connection - or are you setting it some other way ? If PA V2, also did you connect the Flow after you made these settings ?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete