Close-​PA​MRequest

Closes the specified user's PAM activation request.

Syntax

Close-PAMRequest
     [[-Request] <PAMRequest>]
     [<CommonParameters>]
Close-PAMRequest
     [[-Role] <PAMRoleForRequest>]
     [<CommonParameters>]
Close-PAMRequest
     [[-RoleDisplayName] <String>]
     [<CommonParameters>]

Description

The Close-PAMRequest cmdlet deactivates one or more of the user's Privileged Access Management (PAM) activation requests. The Request, Role, or RoleDisplayName parameters must be specified.

Examples

Example 1: Close requests for a specific role

PS C:\> Close-PAMRequest -RoleDisplayName "IT"

This command closes request the user made earlier for a specific role.

Optional Parameters

-Request

Specifies the request to be deactivated.

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

Specifies a role that was returned by Get-PAMRoleForRequest and provided to an earlier call to New-PAMRequest.

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

Specifies the display name of the role that was earlier requested for activation.

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