Remove-​PA​MUser

Removes a user from the MIM Service and the PAM domain.

Syntax

Remove-PAMUser
      [-User] <PAMUser>
      [[-Session] <PAMSession>]
      [-Force]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-PAMUser cmdlet removes a user from the Microsoft Identity Manager (MIM) Service and the Privileged Access Management (PAM) domain. The user to be deleted is indicated by an object returned by a call to Get-PAMUser.

Examples

Example 1: Remove a user

PS C:\> Remove-PAMUser -User (Get-PAMUser -PrivDisplayName "contoso.jen")

This command removes a single user with a specified display name from the MIM Service and the PAM domain.

Required Parameters

-User

Specifies the user to be deleted. You can use the Get-PAMUser cmdlet to get the user that needs to be deleted.

Type:PAMUser
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