Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Set-AdminFlowOwnerRole

Sets owner permissions to the flow.

Syntax

Default (Default)

Set-AdminFlowOwnerRole
 -FlowName <String>
 -EnvironmentName <String>
 -PrincipalType <String>
 -RoleName <String>
 -PrincipalObjectId <String>
 [-ApiVersion <String>]
 [<CommonParameters>]

Description

The Set-AdminFlowOwnerRole cmdlet sets permission to a Power Automate flow depending on parameters. Use Get-Help Set-AdminFlowOwnerRole -Examples for more detail.

Examples

EXAMPLE 1

Set-AdminFlowOwnerRole -PrincipalType Group -PrincipalObjectId b049bf12-d56d-4b50-8176-c6560cbd35aa -RoleName CanEdit -FlowName 1ec3c80c-c2c0-4ea6-97a8-31d8c8c3d488 -EnvironmentName Default-55abc7e5-2812-4d73-9d2f-8d9017f8c877

Add the specified security group as an owner for the flow with ID 1ec3c80c-c2c0-4ea6-97a8-31d8c8c3d488 in environment Default-55abc7e5-2812-4d73-9d2f-8d9017f8c877.

Parameters

-ApiVersion

The api version to call with.

Parameter properties

Type:String
Default value:2016-11-01
Supports wildcards:False
DontShow:False

Parameter sets

-EnvironmentName

Environment ID where the flow is located.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-FlowName

Specifies the flow ID.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-PrincipalObjectId

Specifies the principal object ID of the user or security group.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-PrincipalType

Specifies the type of principal that is being added as an owner; User, or Group (security group).

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RoleName

Specifies the access level for the user on the flow; CanView or CanEdit.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.