[ZBXNEXT-6036] Add "Apply permissions and tag filters to all subgroups" in hostgroup.update API or with MassUpdate (Frontend) Created: 2020 Jun 29  Updated: 2020 Jun 29  Resolved: 2020 Jun 29

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A), Frontend (F)
Affects Version/s: 5.0.0
Fix Version/s: None

Type: New Feature Request Priority: Medium
Reporter: Pietro Ferlauto Assignee: Zabbix Development Team
Resolution: Cannot Reproduce Votes: 1
Labels: API, hostgroup, hostgroup.update, hostgroups, massupdate, object
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot_1.png     PNG File Screenshot_2.png     PNG File Screenshot_3.png     PNG File Screenshot_4.png     PNG File Screenshot_5.png     PNG File Screenshot_6.png     File subgroup_permission_inheritence.mp4    

 Description   

Hi,

i need to create a tree structure with the host groups, but at the moment it is not possible to automate the process. 

 

The step that i do at the moment are the following:

1- i have created a tree structure with host groups (see screenshot_1)

2- i need to create a granular permission so that the user can see the full tree or only a branch, so i try to create some user groups. (see screenshot_2)

3- but in permissions if i select a group that have some subgrups, put the flag on "include subgroups" and click add (see screenshot_3)

4-The group is added in the permission but without including subgroups (see screenshot_4)

5-So i need to go back to host groups and add the flag on "Apply permissions and tag filters to all subgroups" (see screenshot_5)

6-After that in the created user group i start to see the "(including subgroups)"  (see screenshot_6)

 

Because in my infrastructure i need to create a very big tree with thousand of hostgroups. I want to know if is possible implement in the future version of zabbix the possibility to have the mass update function in the frontend so i can update multiple hostgroups with this flag at the same time or if is possible to add the possibility to set this flag with zabbix API, because at the moment with the API i can only create the group and add hosts or other groups.

Thanks in advance.

Pietro



 Comments   
Comment by Valdis Murzins [ 2020 Jun 29 ]

Hello [email protected],

I was not able to reproduce your problem. Can there be something else related to it?
subgroup_permission_inheritence.mp4

In my experiment it is applying permissions to all subgroups without the need to select the checkbox in user group edit form.

Comment by Pietro Ferlauto [ 2020 Jun 29 ]

Hi Valdis,

I tried to reinsert again the hostgroup and i found that the problem is not zabbix because if i use "curl" function it work but with the php library that i'm using to insert the hostgroup the problem persist.

So the problem can be closed.

Thanks

Generated at Fri Mar 14 18:05:18 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.