Compartir a través de


Set-AdminFlowOwnerRole

Sets owner permissions to the flow.

Syntax

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.

Type:String
Position:Named
Default value:2016-11-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EnvironmentName

Environment ID where the flow is located.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-FlowName

Specifies the flow ID.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PrincipalObjectId

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

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PrincipalType

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

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-RoleName

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

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False