Share via


Remove-AdminPowerAppRoleAssignment

Deletes the specified role of an app.

Syntax

Remove-AdminPowerAppRoleAssignment
      -RoleId <String>
      -EnvironmentName <String>
      -AppName <String>
      [-ApiVersion <String>]
      [<CommonParameters>]

Description

The Remove-AdminPowerAppRoleAssignment cmdlet deletes the specified role of an app. Use Get-Help Remove-AdminPowerAppRoleAssignment -Examples for more detail.

Examples

Example 1

Remove-AdminPowerAppRoleAssignment -RoleId "00000000-0000-0000-0000-000000000000" -EnvironmentName 00000000-0000-0000-0000-000000000000 -AppName 00001111-aaaa-2222-bbbb-3333cccc4444

Removes the role with the ID 00000000-0000-0000-0000-000000000000 from environment with the ID 00000000-0000-0000-0000-000000000000 related to app ID 00001111-aaaa-2222-bbbb-3333cccc4444.

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

-AppName

Specifies the app ID.

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

-EnvironmentName

The environment ID where the role is located.

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

-RoleId

Specifies the role assignment ID. Remove-AdminPowerAppRoleAssignment -RoleId "00000000-0000-0000-0000-000000000000" -EnvironmentName "Default-22223333-cccc-4444-dddd-5555eeee6666" -AppName "11112222-bbbb-3333-cccc-4444dddd5555" Deletes the role named 00000000-0000-0000-0000-000000000000 for app id 11112222-bbbb-3333-cccc-4444dddd5555 in Environment Default-22223333-cccc-4444-dddd-5555eeee6666

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