Skip to content

New command: flow owner remove #4560

@Cyhexy

Description

@Cyhexy

Usage

m365 flow owner remove [options]

Description

Removes owner 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.
--asAdmin Run the command as admin.
--confirm Don't prompt for confirmation.

Examples

Remove owner permissions from a specific Power Automate flow for a user by ID

m365 flow owner remove --userId "5c241023-2ba5-4ea8-a516-a2481a3e6c51" --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --flowName 72f2be4a-78c1-4220-a048-dbf557296a72

Remove owner permissions from a specific Power Automate flow for a user by UPN

m365 flow owner remove --userName [email protected] --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --flowName 72f2be4a-78c1-4220-a048-dbf557296a72

Remove owner permissions from a specific Power Automate flow for a group by ID

m365 flow owner remove --groupId "5c241023-2ba5-4ea8-a516-a2481a3e6c51" --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --name 72f2be4a-78c1-4220-a048-dbf557296a72

Default properties

This command is missing at the moment compared to the PowerShell admin commands for Power Automate. This command ensures we can delete permissions more easily from a Power Automate flow.

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

Additional Info

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions