Get-TssUserAudit
SYNOPSIS
Get audit for a user
SYNTAX
user (Default)
Get-TssUserAudit [-TssSession] <Session> -UserId <Int32[]>
[<CommonParameters>]
action
Get-TssUserAudit [-TssSession] <Session> -Action <String[]>
[<CommonParameters>]
DESCRIPTION
Get audit for a Secret Server User
With -Action the audit records of those actions are returned across all users.
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Get-TssUserAudit -TssSession $session -UserId 2
Get all of the audits for UserId 2
EXAMPLE 2
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Get-TssUserAudit -TssSession $session -Action CREATEUSER, EDIT
Get the user creation and user edit audits of all users
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
-UserId
Secret ID
Type: Int32[]
Parameter Sets: user
Aliases: Id
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Action
Audit actions to return across all users, as they appear in the Action property (for example CREATEUSER, EDIT or ‘LOGIN SUCCESS’)
Type: String[]
Parameter Sets: action
Aliases:
Required: True
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.Users.AuditSummary[]
NOTES
Requires TssSession object returned by New-TssSession
RELATED LINKS
https://thycotic-ps.github.io/thycotic.secretserver/commands/users/Get-TssUserAudit