capabilities.work

Manage Flow Owners

A 4-step recipe with Microsoft Power Automate. We can help you get access.

Recipe · 4 steps

Manage Flow Owners

Modify the owner list of a flow and verify the resulting roster.

  1. Read the flow to confirm it exists and to capture its display name and creator for the ownership audit record.
  2. List the flow's current owners so the roster before the change is captured and the requested modification can be reconciled against it.
  3. Apply the owner additions and removals in a single request so the roster never passes through an intermediate state with no owner.
  4. Re-read the owner list and assert at least one owner remains, catching the dangerous case where a removal leaves the flow orphaned.
What you'll need to have ready
  • environmentName: The name of the environment holding the flow.
  • flowName: The name or ID of the flow whose owners are being managed.
  • ownersToAdd: Principals to add as owners, each an object with an id (the principal object ID) and a type.
  • ownersToRemove: Principals to remove as owners, each an object with an id (the principal object ID) and a type.
For your developer

Arazzo workflow microsoft-power-automate:manage-flow-owners, 4 operations: getFlow → listFlowOwners → modifyFlowOwners → listFlowOwners. Specs on APIs.io.