Find-TssUser

SYNOPSIS

Find for a Secret Server user

SYNTAX

Find-TssUser [-TssSession] <Session> [-DomainId <Int32>] [-IncludeInactive] [-Field <String[]>]
 [-FindText <String>] [-SortBy <String>] [<CommonParameters>]

DESCRIPTION

Find for a Secret Server User

EXAMPLES

EXAMPLE 1

$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Find-TssUser -TssSession $session -DomainId 2

Return a list of all users assigned to Domain ID 2

EXAMPLE 2

$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Find-TssUser -TssSession $session -Field Username,Email -FindText demo

Return a list of all users with "demo" in the username or email

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

-DomainId

Filter users by Active Directory Domain

Type: Int32
Parameter Sets: (All)
Aliases: Domain

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

-IncludeInactive

Include inactive users in results

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Field

User field(s) to Find

Type: String[]
Parameter Sets: (All)
Aliases: FindFields

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

-FindText

Find text

Type: String
Parameter Sets: (All)
Aliases:

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

-SortBy

Sort by specific property, default DisplayName

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: DisplayName
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.Lookup

NOTES

Requires TssSession object returned by New-TssSession

https://thycotic-ps.github.io/thycotic.secretserver/commands/users/Find-TssUser

https://github.com/thycotic-ps/thycotic.secretserver/blob/main/src/functions/users/Find-TssUser.ps1