This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.
Table of Contents


Available since version: 1.8
This function allows you to retrieve user group details based on filtering options. All parameters are optional. If parameter is set in query this option counted as ON, except if parameter is equal to NULL.


Parameter Type Description Details
nodeids array Node IDs
usrgrpids array UserGroup IDs
userids array User IDs
status boolean
with_gui_access boolean
with_api_access boolean
editable integer only with read-write permission. Ignored for SuperAdmins
filter array Optional filter by user group fields
search array Return user groups by any given user group object field pattern
startSearch integer Search user groups field pattern only in start of the field
excludeSearch integer Exclude from result, user groups by given field pattern
searchWildcardsEnabled integer Search pattern in whole field using wildcards 1 - enable, 0 - disable
select_users string Select contained users Values: refer, extend
output string Output options Values: shorten, refer, extend
countOutput integer Count user groups, return the number of user groups found
preservekeys integer Return hash instead of array Keys of hash are object IDs
sortfield string Sort by user group field Values: usrgrpid, name
sortorder string Sort order Values: ASC, DESC
limit int Max number of user group objects to return


Parameter Description
result Operation successful. Result will contain array of User group objects.
error In case of any errors


Get details for user groups with names "Debug group","Zabbix administrators", and select users ID in those groups :

           "filter":{"name":["Debug group","Zabbix administrators"]},

Retrieved details for user groups with names "Debug group","Zabbix administrators" :

           "name":"Zabbix administrators",
           "name":"Debug group",