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.


Available since version: 1.8
This method is used to link users or rights with user groups. Available only to super admins.


Multidimensional array with User groups data

Parameter Type Optional Description Details
usrgrpids array User group IDs.
userids array Yes User IDs. New users will be added, missed removed for listed user groups in request.
rights array Yes Host group rights New rights will be added, existed updated, missed removed for listed user groups in request.
user group attribute any Yes New value for a user group attribute.


Parameter Description
result Operation successful. Result will contain array of updated user group IDs.
error In case of any errors


Update rights on host groups with ID "100100000010092", "100100000010093" for user group with ID "100100000000013" and rename user group to "Renamed"

           "usrgrpids": ["100100000000043"],
           "rights": [
               {"permission": 3, "id": "100100000010092"},
               {"permission": 2, "id": "100100000010093"}
           "name": "Renamed"

User groups updated successfully:

           "usrgrpids": ["100100000000043"]