Zabbix Documentation 1.8 (current)| In development:5.0 (devel)| Unsupported:

User Tools

Site Tools



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.


nodeidsarrayNode IDs
usrgrpidsarrayUserGroup IDs
useridsarrayUser IDs
editableintegeronly with read-write permission. Ignored for SuperAdmins
filterarrayOptional filter by user group fields
searcharrayReturn user groups by any given user group object field pattern
startSearchintegerSearch user groups field pattern only in start of the field
excludeSearchintegerExclude from result, user groups by given field pattern
searchWildcardsEnabledintegerSearch pattern in whole field using wildcards 1 - enable, 0 - disable
select_usersstring Select contained users Values: refer, extend
outputstringOutput options Values: shorten, refer, extend
countOutputintegerCount user groups, return the number of user groups found
preservekeysintegerReturn hash instead of array Keys of hash are object IDs
sortfieldstringSort by user group field Values: usrgrpid, name
sortorderstringSort order Values: ASC, DESC
limitintMax number of user group objects to return


resultOperation successful. Result will contain array of User group objects.
errorIn 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",