flow owner ensure
Assigns/updates permissions to a Power Automate flow
Usage
m365 flow owner ensure [options]
Options
-e, --environmentName <environmentName>The name of the environment.
--flowName <flowName>The name of the Power Automate flow.
--userId [userId]The ID of the user. Specify either
userId,userName,groupIdorgroupName.--userName [userName]User principal name of the user. Specify either
userId,userName,groupIdorgroupName.--groupId [groupId]The ID of the group. Specify either
userId,userName,groupIdorgroupName.--groupName [groupName]The name of the group. Specify either
userId,userName,groupIdorgroupName.--roleName <roleName>Access level for the user on the flow. Valid options are
CanVieworCanEdit.--asAdminRun the command as admin.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
Assign owner permissions to a specific Power Automate flow for a user with ID
m365 flow owner ensure --userId 5c241023-2ba5-4ea8-a516-a2481a3e6c51 --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --flowName 72f2be4a-78c1-4220-a048-dbf557296a72 --roleName CanEdit
Assign owner permissions to a specific Power Automate flow for a user with UPN
m365 flow owner ensure --userName "john.doe@contoso.com" --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --flowName 72f2be4a-78c1-4220-a048-dbf557296a72 --roleName CanEdit
Assign owner permissions to a specific Power Automate flow for a group
m365 flow owner ensure --groupId 8d4d9f32-1ab0-4f81-9054-efbb1759e8e6 --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --flowName 72f2be4a-78c1-4220-a048-dbf557296a72 --roleName CanEdit
Response
The command won't return a response on success.