Close-PAMRequestForControl
Deactivates current PAM requests from other users.
Syntax
Close-PAMRequestForControl
[-Role] <PAMRole>
[-Force]
[<CommonParameters>]
Close-PAMRequestForControl
[-User] <PAMUser>
[-Force]
[<CommonParameters>]
Close-PAMRequestForControl
[-Request] <PAMRequest>
[-Force]
[<CommonParameters>]
Close-PAMRequestForControl
[-All]
[-Force]
[<CommonParameters>]
Description
This command cancels currently active activation requests. One of the All, Request, Role or User parameters can be specified.
Examples
EXAMPLE 1
Close-PAMRequestForControl -User (Get-PAMUser -PrivDisplayName "contoso.Jen")
Description
This command closes all requests a specified user made.
Parameters
-All
If none of Request, Role or User parameters are specified, all active requests are closed.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Force
The cmdlet continues silently without asking the user to confirm.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Request
Specifies an object returned by an earlier call to Get-PAMRequest.
Type: | PAMRequest |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Role
Specifies an object returned by an earlier call to Get-PAMRole.
Type: | PAMRole |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-User
Specifies an object returned by an earlier call to Get-PAMUser.
Type: | PAMUser |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
Microsoft.IdentityManagement.PamCmdlets.Model.PAMRequest
The cmdlet outputs each request that has been canceled.