Set-AdminPowerAppOwner

Sets the app owner and changes the current owner to the "Can View" role type.

Syntax

Set-AdminPowerAppOwner
   [-ApiVersion <String>]
   -AppName <String>
   -EnvironmentName <String>
   -AppOwner <String>
   [<CommonParameters>]

Description

The Set-AppOwner cmdlet sets the app owner and changes the current owner to "Can View" role type.

Examples

EXAMPLE 1

Set-AppOwner -AppName "[Guid]" -EnvironmentName "Default-[Guid]" -AppOwner "[Guid]"

Sets the app owner to the specified user and changes the current owner to "Can View" role type.

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

-AppName

ID of the app to update.

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

-AppOwner

ID of new owner of the app.

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

-EnvironmentName

ID of the environment of the app.

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