The Flow Owner Left the Company: How to Change a Power Automate Flow's Owner and Connections

A flow runs on its connections, and connections sign in as the person who created them. When that person leaves and their account is disabled, the connections fail and the flow stops. For a flow outside a solution, Set primary owner says "The owner cannot be changed". Instead, add a co-owner (a person, a group, or a SharePoint list for list flows), have them change every connection to their own or a service account, and save. An admin can add co-owners to orphaned flows with Set-AdminFlowOwnerRole. Flows in a solution can have their owner changed.

Published:

Last updated: 2026-11-06

Owner and connections are different things

The flow details page shows both. The owner decides who manages the flow; the connections decide whose account the flow acts as.

Flow details for Inspection Requests - Filter tests: Primary owner, Connections card with SharePoint and an account, Co-owner card with Set primary owner and Share
Primary owner, co-owners and connections on the details page.

When the person leaves, the flow keeps its owner field, but their connections stop working once their account is disabled or their password is reset. Runs fail with an unauthorized error, or the trigger stops checking.

"This is a non-solution flow. The owner cannot be changed."

We clicked Set primary owner on a flow created from My flows:

Set primary owner panel: This is a non-solution flow. The owner cannot be changed. Learn more
The primary owner of a flow outside a solution can't be changed.

Flows in a solution can have their owner changed. You can add an existing flow to a solution from Solutions, Add existing, Automation, Cloud flow. For flows that stay outside solutions, co-owners are the way.

Add co-owners

From Share on the details page:

Co-owners page: Add a user or group as owner, with one co-owner listed; Embedded connections, Connections in use: one SharePoint connection
Co-owners, and the connections they'll be able to use in this flow.
  • Users and groups. Add a team's Microsoft 365 group or security group, so the flow doesn't depend on one person.
  • SharePoint. Make a list or library a co-owner: everyone who can edit that list becomes a co-owner.
  • Embedded connections. Co-owners can use the connections already in the flow, but only in this flow. That keeps it running until the owner's account is disabled. It doesn't fix it after.
Co-owners, SharePoint tab: Add a SharePoint list or library as owner, with Site and List/Library drop-downs
A SharePoint list or library as co-owner, for flows that belong to that list.

Switch the connections

  1. As a co-owner, open the flow and click Edit.
  2. Select each action and choose Change connection under its parameters. Pick a connection you own, or add one for a service account.
  3. Do it for every connector: SharePoint, Outlook, Approvals, Teams. One left on the old account is enough to fail the run.
  4. Save and test. The flow checker should show no connection errors.

For important flows, use a dedicated service account with a license, and give it access only to the sites the flow needs. Then a person leaving never stops a flow.

Find and take over a leaver's flows with PowerShell

Admins can find flows created by a user and add a co-owner with the Microsoft.PowerApps.Administration.PowerShell module. Nothing changes until you set $WhatIf = $false.

Install-Module Microsoft.PowerApps.Administration.PowerShell -Scope CurrentUser
Add-PowerAppsAccount
$EnvironmentName = "Default-<tenant-id>"
$LeaverObjectId  = "<leaver-entra-object-id>"
$NewOwnerId      = "<successor-entra-object-id>"
$WhatIf          = $true

$flows = Get-AdminFlow -EnvironmentName $EnvironmentName -CreatedBy $LeaverObjectId
$flows | Select-Object DisplayName, Enabled, LastModifiedTime | Format-Table -AutoSize

if (-not $WhatIf) {
    foreach ($f in $flows) {
        Set-AdminFlowOwnerRole -EnvironmentName $EnvironmentName -FlowName $f.FlowName `
            -PrincipalType User -PrincipalObjectId $NewOwnerId -RoleName CanEdit
    }
}

Run it before the account is disabled, so the successor can switch the connections while the old ones still work.

Hand over the SharePoint side with SharePoint Essentials Toolkit

A flow is only part of what a leaver owns. Their SharePoint access, group memberships and items need a successor too. The toolkit's Leavers area finds and hands over the SharePoint side:

SharePoint Essentials Toolkit Leavers area: Everything one person can access, Email links to them, Content that mentions them, Replace one user with another, Replace them on items, Remove a person from everything
Find what a leaver has, hand it over, then remove them.
Replace one user with another: pick sites, pick the user to replace and the new user; the new user gets the same access, then the replaced user is removed
Replace one user with another: the successor gets the same access on every site you pick.
  • Everything one person can access shows the sites, lists and items, including the sites their flows use.
  • Replace one user with another gives the successor the same site admin roles, group memberships and permissions, then removes the leaver.
  • Replace them on items swaps them for the successor in Created By, Modified By and Person columns, so views and flows filtered on the leaver keep working.

The toolkit doesn't change flow owners or connections; do that with the steps above.

Community Edition is free on up to 20 sites per Microsoft 365 tenant.

Seeing "There's a problem with the flow's trigger"? See how to fix a Power Automate flow trigger problem in SharePoint.

Frequently asked questions

Why can't I change the owner of my flow?

Flows outside a solution show "This is a non-solution flow. The owner cannot be changed." Add co-owners instead, or move the flow into a solution.

Does a flow stop when its owner leaves?

It stops when the owner's connections stop working, usually when their account is disabled. Switch every connection to another account first.

Can a SharePoint list be a flow co-owner?

Yes. On the co-owners page, the SharePoint tab adds a list or library as owner, which makes everyone who can edit it a co-owner.

Can co-owners use the owner's connections?

Yes, but only inside that flow, and only while the connections work. After the owner's account is disabled, co-owners must change the connections.

How do admins take over orphaned flows?

Find them with Get-AdminFlow, then add a co-owner with Set-AdminFlowOwnerRole, or use the Power Platform admin center.

Hand over a leaver's SharePoint access, free

SharePoint Essentials Toolkit Community Edition is free. Find everything a leaver can access and give it to a successor in one job, on up to 20 sites per Microsoft 365 tenant. Get your free Community Edition license key.

About the author. The Cognillo SharePoint Team builds and supports SharePoint Essentials Toolkit and has worked with SharePoint administrators on permissions audits, migrations and cleanup projects since 2012.