Close-PAMRequestForControl

Cancels current PAM activation requests from other users.

Syntax

Close-PAMRequestForControl
     [-All]
     [-Force]
     [<CommonParameters>]
Close-PAMRequestForControl
     [-Request] <PAMRequest>
     [-Force]
     [<CommonParameters>]
Close-PAMRequestForControl
     [-Role] <PAMRole>
     [-Force]
     [<CommonParameters>]
Close-PAMRequestForControl
     [-User] <PAMUser>
     [-Force]
     [<CommonParameters>]

Description

The Close-PAMRequestForControl cmdlet cancels current Privileged Access Management (PAM) activation requests. One of the All, Request, Role, or User parameters can be specified.

Examples

Example 1: Close requests from a specific user

PS C:\> Close-PAMRequestForControl -User (Get-PAMUser -PrivDisplayName "contoso.PattiFul")

This command closes all requests a specified user made.

Required Parameters

-All

Indicates that all active requests are closed if the Request, Role, or User parameters are not specified.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Request

Specifies an object returned by an earlier call to Get-PAMRequest.

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

Specifies an object returned by an earlier call to Get-PAMRole.

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

Specifies an object returned by an earlier call to Get-PAMUser.

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

Optional Parameters

-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

Outputs

Microsoft.IdentityManagement.PamCmdlets.Model.PAMRequest