Approve-ARRequest

Approve-ARRequest

SYNOPSIS

Approves an open access request

SYNTAX

Approve-ARRequest [-requestId] <String> [[-finalizationReason] <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Approves an open access request, returning the request with a requestResult of APPROVED.

A request can only be handled by a user assigned as one of its approvers. Once one assigned approver has handled a request, no other assigned approver can handle it.

Request identifiers come from Get-ARRequest, and pipe into this command.

EXAMPLES

Example 1

Approve-ARRequest -requestId 8a45155d-0273-4bc8-8d45-9fe3f4d4de6d -finalizationReason 'All requirements met'

Approves the specified access request

Example 2

Get-ARRequest -requestState PENDING -requestRole APPROVER | Approve-ARRequest -finalizationReason 'Approved for the change window'

Approves every request awaiting your approval

PARAMETERS

-requestId

The identifier of the access request to approve.

Type: String
Parameter Sets: (All)
Aliases: id

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-finalizationReason

The reason for approving the request.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES