I created a flow that sends an email using the "Send Email (V2)" process and is using an environment variable connection reference within a solution. The connection reference is a service account email for Office 365 Outlook. Nothing complicated:
When a first-time user opens this app (App #1), it is asking permission for this Office 365 connection reference (and under their email):
My issue is that another one of my coworker's PowerApps (App #2) is not asking for permission for this connection reference even though the set-up for the connection reference is similar:
We could not figure out how they were able to bypass the permission?
The users are sending/receiving emails from the service account completely fine in App #2 (with the From field in the email showing "Service Account").
Is it the way the app calls the flow? Their flow doesn't use inputs from PowerApps, but my flow does pass inputs from PowerApps.
There are no security roles set for the users who are using App #2 in the PROD environment, and mine seems to require permission when a shared user tries to call this flow in the TEST environment:
I've even tried replicating their schema for the flow with a new app, but the app automatically adds this connection reference and is asking for permission.
You need to reset the connection reference when you import the solution. But the specification that it use the maker selection shouldn't be cleared. Also, you aren't setting the connection reference, you are setting the connection the connection reference will use.
So, setting the run only user to use the connection reference wouldn't ask for permission? It's currently set to the connection reference's email in our DEVL environment, but when I import the solution in TEST, it looks like it clears it away.
Is the flow you built in a Solution and did you set the Run only user setting to use the maker's connection or did you leave it to the default Provided by the run only user? Changing this setting will cause the flow to use the maker's connection and the users using the app will not be prompted for permission.
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492