Excelgoodies logo +31 97 010285556

LEARN THIS HANDS ON

Power Apps & Power Automate

. Live Online FILLING FAST
View all upcoming batches
Power Automate Governance: When One Departure Breaks 300 Flows

Power Automate Governance: When One Departure Breaks 300 Flows

Your HR manager leaves, IT disables their Microsoft 365 account, and suddenly invoices stop going out, approvals stall, and nobody can find which Power Automate flows were running under that identity. You know you need Power Automate governance, but you also need patterns that work when 300 employees build their own flows.

This article walks through a realistic scenario and shows how to use environments, ownership models, and service accounts to keep your Power Platform estate survivable when key people move on.


The Scenario: Shadow Automation at Scale

You have:

  • A default environment where everyone can build flows.
  • Around 300 employees using Power Automate for personal and team automations.
  • One key HR manager who built dozens of flows: onboarding, offboarding, reminders, data syncs.

When that HR manager leaves:

  • Their Microsoft Entra ID account is disabled and licence removed.
  • All flows where they are the only owner and/or connection owner stop working.
  • Nobody knows:
    • Which flows were theirs.
    • Which flows were business‑critical versus experimental.
    • Which data sources those flows touched.

We’ll use this scenario to anchor three governance pillars:

  1. Environments – where flows live and who can build them.
  2. Ownership – who owns flows and how that changes over time.
  3. Service accounts – identities that survive staff turnover.

Pillar 1: Use Environments to Separate Personal from Business‑Critical Flows

If everything lives in the Default environment, you’ve already lost most of your governance battle. The default environment is deliberately permissive: it’s meant for personal productivity, not core business processes.

A practical split that works for most organisations:

  • Default environment
    • Purpose: personal productivity flows.
    • Access: all users, but with clear guidance that anything business‑critical does not belong here.
  • Business environment(s) (e.g. HR-Production, Finance-Production)
    • Purpose: departmental or organisation‑level processes.
    • Access: restricted via security groups.
    • Managed by: Power Platform admin / environment admins.

Why this matters in the HR departure scenario

If the HR manager built everything in the default environment:

  • There is no clear boundary between their personal experiments and production HR flows.
  • Admins must sift through all flows to find the ones that matter.

If instead:

  • HR production flows live in an HR-Production environment.
  • Only HR and admins can create flows there.

Then when the HR manager leaves:

  • You search only in HR-Production for flows they own.
  • You know those flows are business‑related and worth investigating.

Concrete environment configuration steps

From the Power Platform admin center:

  1. Create departmental production environments
    • Type: Production.
    • Region: same as your primary tenant region unless you have a compliance reason otherwise.
  2. Assign security groups
    • For each environment, assign a Microsoft Entra security group as the environment’s access control.
    • Add the relevant department users and admins to that group.
  3. Document the boundary
    • Default environment: personal automation only.
    • Department environments: anything that impacts customers, compliance, or core operations.

This doesn’t stop people from misusing the default environment, but it gives you a clean place to put governed flows and a clear story when you have to triage after someone leaves.


Pillar 2: Understand Ownership and Connections Before Someone Leaves

Two different concepts matter here:

  • Flow ownership – who can edit, delete, and manage the flow.
  • Connection ownership – which identity is used when the flow calls Outlook, SharePoint, Dataverse, SQL, etc.

Flow ownership: who can keep the lights on

Every cloud flow has owners:

  • The creator is added as an owner.
  • Owners can add or remove other owners.
  • Environment admins and Power Platform admins can also manage owners via admin tools.

In the HR scenario:

  • Many flows are owned only by the HR manager.
  • When their account is removed, those flows become orphaned from a business perspective.
    • The platform may still show them, but nobody in HR has rights to modify them.

To avoid this:

  • For any business‑critical flow, ensure:
    • At least one team owner (e.g. an HR shared security group) is added.
    • At least one admin owner (e.g. environment admin account) can step in.

A practical pattern:

  • Create a security group per department (e.g. HR-Flow-Owners).
  • Add that group as an owner to all HR production flows.
  • Maintain membership of that group as people join/leave the department.

This way, when one person leaves, the group still owns the flow, and other group members can edit it.

Connection ownership: who the flow runs as

Connections are separate objects used by flows to talk to services. Key points:

  • A connection typically runs as the user who created it.
  • Flows reference connections; if the user’s account is disabled, the connection becomes unusable.
  • For some connectors, you can use service principals or service accounts instead of personal identities.

In our HR scenario:

  • The HR manager created:
    • Outlook connections to send emails.
    • SharePoint connections to update HR lists.
    • Possibly Dataverse connections if HR uses it.
  • Those connections are tied to their individual account.
  • Once that account is disabled, flows fail at run time with connection errors.

To make flows resilient:

  • Use non‑personal identities for business‑critical flows wherever supported.
  • Regularly review which connections flows are using.

Pillar 3: Service Accounts for Business‑Critical Flows

Service accounts (sometimes called functional accounts) are Microsoft Entra identities created for automations and integrations, not tied to a single person.

Used correctly, they solve the core problem in our scenario:

  • When the HR manager leaves, flows keep running because they use a service account’s connections.

Service account design

For each department with production flows, define:

  • A dedicated service account (e.g. svc-hr-automation@tenant).
  • Licences:
    • Assign appropriate Power Automate / Power Apps licences based on the connectors and capacity needed.
    • Assign any required underlying licences (e.g. Microsoft 365 E3/E5 if using Exchange/SharePoint connectors).

Governance rules:

  • Service accounts are owned and managed by IT.
  • Passwords and app secrets are stored in a secure vault.
  • No interactive sign‑in by end users except when explicitly needed for connection creation.

Using service accounts in flows

In the HR scenario, you’d:

  1. Sign in to Power Automate as the HR service account (or temporarily grant a trusted admin access).
  2. Create connections:
    • Outlook (to send HR emails from a shared mailbox or the service account).
    • SharePoint (to update HR sites).
    • Dataverse (if HR data is in Dataverse).
  3. Build or re‑wire flows so that:
    • All actions use service account connections.
    • No action uses an individual HR user’s personal connection.

Result:

  • Offboarding the HR manager does not break the connections.
  • The flows continue to run under the service account identity.

Ownership and service accounts

Service accounts should generally not be the only owner of a flow:

  • The service account provides the runtime identity.
  • Human owners (via security groups) provide governance and maintenance.

For each production flow:

  • Owners:
    • Department owner group (e.g. HR-Flow-Owners).
    • Environment admin account.
  • Connections:
    • Service account connections for all critical connectors.

This separation lets you rotate staff without touching the runtime identity.


Finding and Fixing Orphaned Flows When Someone Leaves

Back to the HR scenario: the manager has already left, flows are failing, and you need to restore service.

Assuming you have Power Platform admin rights or a Power Platform Center of Excellence (CoE) setup, you have options.

Step 1: Discover flows owned by the departed user

Using the Power Platform admin center and/or PowerShell:

  • Filter flows by owner and environment.
  • Focus on departmental production environments first.

With PowerShell, using the Power Platform PowerShell modules (current modules and cmdlets may change over time, so check documentation before scripting in production):

# Example outline using Power Apps admin PowerShell module
# Run from an elevated PowerShell session with appropriate admin roles

Install-Module -Name Microsoft.PowerApps.Administration.PowerShell -Scope CurrentUser
Import-Module Microsoft.PowerApps.Administration.PowerShell

$ownerUpn = "hr.manager@tenant"

# List flows where the user is an owner in a given environment
$environmentName = "Default-12345678-90ab-cdef-1234-567890abcdef"

Get-AdminFlow -EnvironmentName $environmentName |
  Where-Object { $_.Owner.PrincipalName -eq $ownerUpn } |
  Select-Object DisplayName, FlowName, EnvironmentName, Owner

This kind of script helps you identify flows that need attention. Adapt it to your actual environment names and tenant.

Step 2: Assess impact

For each identified flow:

  • Check:
    • Run history: recent failures and what actions are failing.
    • Triggers: what events start the flow (e.g. when an item is created in SharePoint).
    • Connectors: which services are involved.
  • Classify:
    • Critical (e.g. onboarding, payroll, compliance notifications).
    • Important but not critical.
    • Safe to retire.

Document this in a simple inventory (even a SharePoint list or Excel file is fine) before making changes.

Step 3: Reassign ownership

For flows that must continue:

  • Add a departmental owner group and environment admin as owners.
  • Remove the departed user from owners if still present.

From the Power Platform admin center:

  • Use Flow details → Owners to add new owners.

Step 4: Replace personal connections with service account connections

For each critical flow:

  1. Sign in as or with access to the service account.
  2. Create the required connections.
  3. Edit the flow:
    • Replace each action’s connection with the service account’s connection.
    • Save and test.
  4. Verify run history after changes.

In some cases, rebuilding a flow under the service account identity is cleaner than re‑wiring many actions.


Preventing the Next Governance Fire

Once you’ve survived the HR incident, you want to avoid repeating it in Finance, Sales, or Operations.

Focus on a few practical governance controls that don’t block productivity.

1. A lightweight environment strategy

  • Default environment:
    • Allowed: personal productivity flows.
    • Not allowed: anything that “must never silently stop”.
  • Production environments per department:
    • Controlled access via security groups.
    • Clear naming and purpose.

2. A simple classification rule

Ask every department to classify flows:

  • Personal – owned by one person, impact limited to their work.
  • Team – affects a team’s work and SLAs.
  • Enterprise – affects customers, compliance, or financials.

Require that:

  • Team and enterprise flows live in departmental environments.
  • Enterprise flows must use service accounts for connections wherever supported.

3. Ownership standards

For team and enterprise flows:

  • At least one security group owner.
  • Environment admin as backup owner.
  • No flows where a single individual is the only owner.

4. Connection standards

For enterprise flows:

  • Use service accounts for connectors that support them.
  • Avoid using personal mailboxes for system notifications; prefer shared mailboxes or service accounts.

5. Offboarding checklist integration

Extend your HR offboarding checklist:

  • Before disabling an account:
    • Check if the user is an owner of flows in production environments.
    • Reassign ownership and update connections where necessary.

This doesn’t require deep Power Platform expertise in HR; it just adds a trigger for the Power Platform admin team to review.


One Takeaway: Tie Runtime Identity to Service Accounts, Not People

If you remember one thing from the HR scenario, make it this:

Any flow that must survive staff turnover should run using a service account connection and have owner groups, not individuals.

Get that pattern in place for your top 10 critical flows per department, and the next time a key employee leaves, you’ll be dealing with routine maintenance instead of a production outage.

Editor's Note

This article reflects the shift from ad-hoc employee-built automation toward governed Power Automate patterns using environments, shared ownership, and service accounts in teams where flows underpin core business processes.

Professionals who want to apply these patterns to their own data can explore Excelgoodies' Power Automate Course programme - taught live by instructors, with certification awarded once a real project is running at work.

Insights compiled through ongoing industry research and discussions within the Excelgoodies Analytics Community.

Power Automate

New

Next Batches Now Live

Power BIPower BI
SQLSQL
Power AppsPower Apps
Power AutomatePower Automate
Microsoft FabricMicrosoft Fabrics
AzureAzure Data Engineering
Explore Dates & Reserve Your Spot → Reserve Your Spot →