< Back

Get-ZabbixUser

Sun Jan 19, 2020 6:11 pm

NAME Get-ZabbixUser



SYNOPSIS

Get users





SYNTAX

Get-ZabbixUser [[-SortBy] <Array>] [-getAccess] [[-UserID] <Object>] [[-MediaID] <Object>] [[-jsonrpc] <String>]

[[-session] <String>] [[-id] <String>] [[-URL] <String>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-SortBy <Array>

Sort output by (userid, alias (default)), not mandatory



Required? false

Position? 1

Default value alias

Accept pipeline input? false

Accept wildcard characters? false



-getAccess [<SwitchParameter>]

Adds additional information about user permissions (default=$true), not mandatory



Required? false

Position? named

Default value True

Accept pipeline input? false

Accept wildcard characters? false



-UserID <Object>



Required? false

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-MediaID <Object>



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-jsonrpc <String>



Required? false

Position? 4

Default value ($global:zabSessionParams.jsonrpc)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-session <String>



Required? false

Position? 5

Default value ($global:zabSessionParams.session)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-id <String>



Required? false

Position? 6

Default value ($global:zabSessionParams.id)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-URL <String>



Required? false

Position? 7

Default value ($global:zabSessionParams.url)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-ZabbixUser | select userid,alias,attempt_ip,@{n="attempt_clock(UTC)";e={convertfrom-epoch

$_.attempt_clock}},@{n="usrgrps";e={$_.usrgrps.name}}



Get users









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-ZabbixUser | ? alias -match userName | select alias -ExpandProperty medias



Get user medias









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-ZabbixUser | ? alias -match userName | select alias -ExpandProperty mediatypes



Get user mediatypes









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-ZabbixUser | ? alias -match alias | select

userid,alias,attempt_ip,@{n="attempt_clock(UTC)";e={convertfrom-epoch

$_.attempt_clock}},@{n="usrgrps";e={$_.usrgrps.name}}



Get users









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Get-ZabbixUser | select name, alias, attempt_ip, @{n="attempt_clock (UTC-5)"; e={((convertfrom-epoch

$_.attempt_clock)).addhours(-5)}},@{n="usrgrps";e={$_.usrgrps.name}} | ft -a



Get users











RELATED LINKS