I'm using the API to dynamically add some hostgroups (via hostgroup.create) which works just fine. In order to make my new group visible, I need to add it to the list of permissions for my "Zabbix users" and "Zabbix administrators" user groups.
That seems pretty straightforward, usergroup.update takes an array of rights objects which replaces the permissions so I would just include my new groupid in with the others and I'm done. The problem, however is that I can't see any usergroup.get call that tells me what the current array of rights are for the usergroup. If I just put my new group in there it removes all other groups and I only have the one.
How do I pull a list of current permissions for a usergroup?
Kevin
That seems pretty straightforward, usergroup.update takes an array of rights objects which replaces the permissions so I would just include my new groupid in with the others and I'm done. The problem, however is that I can't see any usergroup.get call that tells me what the current array of rights are for the usergroup. If I just put my new group in there it removes all other groups and I only have the one.
How do I pull a list of current permissions for a usergroup?
Kevin
Comment