Set-AdminFlowOwnerRole

Sets owner permissions to a flow.

Syntax

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

Description

The Set-AdminFlowOwnerRole cmdlet sets owner permission to a flow, depending on parameters.

Examples

EXAMPLE 1

Set-AdminFlowOwnerRole -PrincipalType Group -PrincipalObjectId [Guid] -RoleName CanEdit -FlowName [Guid] -EnvironmentName Default-[Guid]

Adds the specified security group as an owner of the specified flow in the specified environment.

Parameters

-ApiVersion

Version of Power Apps API to use.

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

ID of the environment of the flow.

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

ID of the flow to update.

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

Object Id of the user or security group.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PrincipalType

Type of principal that is being added as an owner. Valid options are user or group (security group).

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RoleName

Access level for the user on the flow. Valid options are CanView or CanEdit.

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