Run Power Apps Actions with Elevated Permissions via Power Automate, from Reza Dorrani
TL;DR: Use the Power Apps (V2) trigger, open the flow’s Run only users panel and set the restricted connection to Use this connection with a service account instead of Provided by run-only user. The action then runs with the service account’s permissions, while the app user only needs access to the app. Validate every input inside the flow, and remember that licensing still follows the app user, not the service account.
A Power Apps user needs to create a SharePoint item in a list they can only read, or update a Dataverse row they are not allowed to touch. Reza Dorrani shows how a Power Automate flow does that work on the user’s behalf with a service account’s connection.
💡 Challenge
By default, a flow called from Power Apps acts as the person using the app. Every connection is Provided by run-only user, so the flow can only do what that user is already allowed to do. Giving every app user write access to the underlying list or table defeats the purpose of the restriction. The classic workaround was a parent flow running as the user that calls a child flow running as a service account: two flows, two sets of connections, harder to debug.
✅ Solution
The Power Apps (V2) trigger supports two connection types: embedded connections, which use the account that is configured in the flow, and invoker connections, which use the account of the person running the app. Set the connection for the privileged action to the service account’s embedded connection, and the action runs with that account’s permissions no matter who presses the button.
🔧 How It’s Done
1. Prepare a service account.
🔸 Give it exactly the permissions the operation needs, for example Contribute on one SharePoint list or a security role with write access to one Dataverse table. No broad admin rights.
2. Build the flow with the Power Apps (V2) trigger.
🔸 Add the trigger inputs the action needs (for example a title and a description).
🔸 Create the connection for the privileged action (SharePoint Create item, Dataverse Update a row) while signed in as the service account, or add the service account’s connection to the action.
3. Set the connection type under Run only users.
🔸 On the flow details page, open Run only users > Edit.
🔸 For the service-account connection, switch from Provided by run-only user to Use this connection and pick the service account’s connection.
🔸 Leave connections that should act as the app user (for example sending a mail from the user’s own mailbox) on Provided by run-only user.
4. Refresh the flow in the app.
🔸 In Power Apps Studio, open the Power Automate pane, select … next to the flow and choose Refresh, then save and publish the app. The app keeps the old connection metadata until you do this.
5. Call the flow from the app.
1
ElevatedCreateItem.Run(txtTitle.Text, txtDescription.Text)
6. Validate inside the flow.
🔸 Arguments sent from Power Apps travel as network traffic and can be changed. Before the privileged action, check the input with a Condition (allowed values, allowed list, the caller’s identity from the trigger outputs) and stop the run with Terminate if the check fails.
🎉 Result
The app user creates the SharePoint item or updates the Dataverse row through the app, without having that permission in SharePoint or Dataverse. Only the one action the flow performs is elevated, and only after your checks have passed.
🌟 Key Advantages
🔸 One flow instead of two: no parent and child flow construction.
🔸 Least privilege for users: app users keep read-only or no access to the data source.
🔸 Mixed identities: privileged actions use the service account, personal actions still use the app user.
🔸 Central control: permissions live on one service account you can audit.
⚠️ Good to Know
🔸 Licensing follows the invoker. A flow triggered from Power Apps is an instant flow and runs in the license context of the user who invokes it. Connections don’t change license checks. If the flow uses premium connectors such as Dataverse, every app user needs a Power Apps Premium license (flow in context of the app) or a Power Automate Premium license, or the flow needs a Process license. One Premium license on a shared service account for many users is multiplexing.
🔸 Audit trail. SharePoint and Dataverse record the service account as the author or modifier. If you need to know who triggered the change, write the caller’s identity into a column or a log table.
🔸 Microsoft’s recommendation: for flow ownership, Microsoft recommends a Microsoft Entra service principal over a shared service account. If you use a service account, limit who can sign in with it.
🛠️ FAQ
1. Can Power Apps users run actions they do not have permission for?
Yes. With the Power Apps (V2) trigger, set the connection under Run only users to Use this connection with a service account. The action then runs with that account’s permissions instead of the app user’s.
2. Does this work with the old PowerApps trigger?
No. The choice between embedded and invoker connections is only available with the Power Apps (V2) trigger. With the original PowerApps trigger, every connection is provided by the user who runs the app.
3. Do I still need child flows for elevated permissions?
No. One flow with an embedded service-account connection replaces the parent and child flow workaround.
4. Does the service account’s license cover the app users?
No. Licensing follows the invoking user. See Good to Know above for premium connectors and the Process license.
5. I changed the connection, but the app still fails. Why?
The app still holds the old flow metadata. Refresh the flow in the Power Automate pane of Power Apps Studio (or remove and add it again), then save and publish the app.
🔗 Related Tips
🔸 #PowerPlatformTip 126: ‘User Context for Automated Tasks’ - the opposite scenario, running a flow in each user’s own context instead of a service account.
🔸 #PowerPlatformTip 98: ‘Secure Inputs, Secure Outputs’ - hide sensitive inputs and outputs of the privileged actions in the run history.
You can see this video here on my blog because I have rated this video with 5 stars in my YouTube video library. This video was automatically posted using PowerAutomate.
This tip is by Marcel Lehmann, Microsoft MVP (Business Applications) and founder of the Power Platform Academy, which runs free live workshops (in German). See the next free workshop dates (in German). For companies that want this implemented for them, see KMUpower: Power Platform consulting & automation for SMEs (DACH).