Skip to content

New command: flow owner add #4559

@Cyhexy

Description

@Cyhexy

Usage

m365 flow owner add [options]

Description

Assigns permissions to a Power Automate flow

Options

Option Description
-e, --environmentName <environmentName> The name of the environment.
-f, --flowName <flowName> The name of the Power Automate flow.
--userId [userId] The ID of the user. Specify either userId, userName, groupId or groupName.
--userName [userName] User principal name of the user. Specify either userId, userName, groupId or groupName.
--groupId [groupId] The ID of the group. Specify either userId, userName, groupId or groupName.
--groupName [groupName] The name of the group. Specify either userId, userName, groupId or groupName.
--roleName <roleName> Access level for the user on the flow. Valid options are CanView or CanEdit.
--asAdmin Run the command as admin.

Examples

Assign owner permissions to a specific Power Automate flow for a user with ID

m365 flow owner add --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 add --userName "[email protected]" --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 add --groupId 8d4d9f32-1ab0-4f81-9054-efbb1759e8e6 --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --flowName 72f2be4a-78c1-4220-a048-dbf557296a72 --roleName CanEdit

Additional Info

This command is missing at the moment compared to the PowerShell admin commands for Power Automate. This can be used to add additional contributors to a Power Automate flow.

PowerShell command: https://learn.microsoft.com/en-us/powershell/module/microsoft.powerapps.administration.powershell/set-adminflowownerrole

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions