add_flow_owner
Add an owner to a Microsoft Power Automate flow by granting CanEdit or CanView role to a user or group using their Azure AD object ID.
Instructions
Grant a principal a role on a flow (PUT .../permissions/{principalId}) [DISABLED: set ENABLE_WRITE_OPS=true]. Parameters: flow (required), principalId (required — AAD object id), roleName (CanEdit|CanView), environment (optional). Uses Microsoft's unofficial api.flow.microsoft.com endpoint, which Microsoft labels unsupported; behavior may change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | Yes | Flow GUID name (from list_flows). | |
| roleName | Yes | Role to grant. | |
| environment | No | Environment id (from list_environments). Omit to use the user's default environment. | |
| principalId | Yes | Azure AD object id of the user/group to grant. |