Ad Widget

Collapse

Usergroup.create read-only all hostgroup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Meystin
    Junior Member
    • Sep 2016
    • 5

    #1

    Usergroup.create read-only all hostgroup

    Hello,
    I am writting a code to initialize my zabbix server.
    I want to create a user group which can only read data from API.
    How can i select all id when i use usergroup.create?
    thank you
    Part of my code:
    $searchId = $this->_api->usergroupCreate(array(
    "name" => "myGuest",
    "rights" => array(
    "id"=>'<select all group>',
    "permission" => 2,
    ),
    ));
Working...