< Back
Get-ZabbixUserGroup
Post
NAME Get-ZabbixUserGroup
SYNOPSIS
Get user group
SYNTAX
Get-ZabbixUserGroup [[-SortBy] <Array>] [[-status] <Object>] [[-userids] <Array>] [[-jsonrpc] <String>]
[[-session] <String>] [[-id] <String>] [[-URL] <String>] [<CommonParameters>]
DESCRIPTION
Get user group
PARAMETERS
-SortBy <Array>
Sort output by (usrgrpid, name (default)), not mandatory
Required? false
Position? 1
Default value name
Accept pipeline input? false
Accept wildcard characters? false
-status <Object>
[Parameter(Mandatory=$False,ValueFromPipelineByPropertyName=$true)][array]$UserGroupName,
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-userids <Array>
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-ZabbixUserGroup | select usrgrpid,name
Get user groups
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-ZabbixUserGroup | ? name -match administrators | select -ExpandProperty users | ft -a
Get users in Administrators group
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>(Get-ZabbixUserGroup | ? name -match administrators).users | select alias,users_status
Get users in user group
RELATED LINKS
SYNOPSIS
Get user group
SYNTAX
Get-ZabbixUserGroup [[-SortBy] <Array>] [[-status] <Object>] [[-userids] <Array>] [[-jsonrpc] <String>]
[[-session] <String>] [[-id] <String>] [[-URL] <String>] [<CommonParameters>]
DESCRIPTION
Get user group
PARAMETERS
-SortBy <Array>
Sort output by (usrgrpid, name (default)), not mandatory
Required? false
Position? 1
Default value name
Accept pipeline input? false
Accept wildcard characters? false
-status <Object>
[Parameter(Mandatory=$False,ValueFromPipelineByPropertyName=$true)][array]$UserGroupName,
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-userids <Array>
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-ZabbixUserGroup | select usrgrpid,name
Get user groups
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-ZabbixUserGroup | ? name -match administrators | select -ExpandProperty users | ft -a
Get users in Administrators group
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>(Get-ZabbixUserGroup | ? name -match administrators).users | select alias,users_status
Get users in user group
RELATED LINKS