Remove-​PA​MRole

Removes a PAM role from the MIM Service.

Syntax

Remove-PAMRole
      [-Role] <PAMRole>
      [[-Session] <PAMSession>]
      [-Force]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-PAMRole cmdlet removes a Privileged Access Management (PAM) role from the Microsoft Identity Manager (MIM) Service.

Examples

Example 1: Remove a role

PS C:\> Remove-PAMRole -Role (Get-PAMRole -DisplayName "IT")

This command removes a single role with a specified display name from the MIM Service.

Required Parameters

-Role

Specifies the role to be deleted. You can get the role by calling the Get-PAMRole cmdlet.

Type:PAMRole
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Session

Specifies the session with the PAM domain and MIM Service.

Type:PAMSession
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False