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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"flow": "<flow>",
"principalId": "<principalId>",
"roleName": "<roleName>"
},
"name": "add_flow_owner"
}
}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. |