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.
- Read the flow to confirm it exists and to capture its display name and creator for the ownership audit record.
- List the flow's current owners so the roster before the change is captured and the requested modification can be reconciled against it.
- Apply the owner additions and removals in a single request so the roster never passes through an intermediate state with no owner.
- 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.