Close-PAMRequest

Cancel this user's PAM activation requests.

Syntax

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

Description

This cmdlet deactivates one or more of this user's PAM activation requests. The Request, Role or RoleDisplayName parameters must be specified.

Examples

EXAMPLE 1

Close-PAMRequest -RoleDisplayName "IT"

Description


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

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 elevation.

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