Partager via


Set-AdminPowerAppOwner

Sets the app owner and changes the current owner to "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 the "Can View" role type. Use Get-Help Set-AppOwner -Examples for more detail.

Examples

EXAMPLE 1

Set-AppOwner -AppName "73691d1f-0ff5-442c-87ce-1e3e2fba58dc" -EnvironmentName "Default-55abc7e5-2812-4d73-9d2f-8d9017f8c877" -AppOwner "1ec3c80c-c2c0-4ea6-97a8-31d8c8c3d488"

Sets the app owner to "1ec3c80c-c2c0-4ea6-97a8-31d8c8c3d488" and changes the current owner for the specified app and environment to the "Can View" role type.

Parameters

-ApiVersion

Specifies the Api version that is called.

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

-AppName

App ID for the app where you want to set permission.

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

-AppOwner

ID of new owner which you want to set.

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

-EnvironmentName

The environment ID.

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