Update-TssSecretSecurityApproval
SYNOPSIS
Update the approval settings of a secret
SYNTAX
Update-TssSecretSecurityApproval [-TssSession] <Session> -Id <Int32> [-AutoCheckIn] [-AutoCheckout]
[-AutoComment <String>] [-ForceCheckIn] [-ApproverGroupId <Int32[]>] [-RequireApprovalType <String>]
[-WorkflowTemplateId <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Sets whether viewing the secret requires approval, who approves, and the access request workflow. Only the settings passed are changed; Secret Server requires ApproverGroupId when turning approval on. Returns the updated security settings and a success flag.
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Update-TssSecretSecurityApproval -TssSession $session -Id 42 -RequireApprovalType RequireEditorsApproval -ApproverGroupId 3, 15
Requires approval for editors of secret 42, approved by groups 3 and 15
EXAMPLE 2
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Update-TssSecretSecurityApproval -TssSession $session -Id 42 -RequireApprovalType None
Turns off approval on secret 42
PARAMETERS
-TssSession
TssSession object created by New-TssSession for authentication
Type: Session
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Id
Secret ID
Type: Int32
Parameter Sets: (All)
Aliases: SecretId
Required: True
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-AutoCheckIn
Check the secret back in after the request completes
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-AutoCheckout
Check out the secret automatically when it requires checkout
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-AutoComment
Comment to record with the automatic checkout, for secrets that require a comment
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ForceCheckIn
Force check in the secret if another user has it checked out
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-ApproverGroupId
Group ID of each approver; a user approves through the user personal group. Replaces the whole approver list
Type: Int32[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RequireApprovalType
Who needs approval to access the secret. RequireApproval covers viewers only and RequireEditorsApproval adds editors. When the configuration forces approval for editors, Secret Server reports RequireApproval as RequireEditorsApproval but still stores viewers-only approval
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WorkflowTemplateId
ID of the access request workflow template
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
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
Thycotic.PowerShell.Secrets.SecurityApproval
NOTES
Requires TssSession object returned by New-TssSession