Ad Widget

Collapse

Zabbix 4.4 [API] Usergroup.update additional permissions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WytheNet
    Junior Member
    • Jul 2017
    • 6

    #1

    Zabbix 4.4 [API] Usergroup.update additional permissions

    Hi everyone!
    I want additional permissions(such B) to group,but i don't know what are the original permissions(such A) of this group,I hope the permissions after the update are ( A + B),but if I use Usergroup.update, the permissions become A ,it lost B ,Who can help me ,thanks very much !
    Group permissions
    now G A
    i wash G A+B
    how can I get the permissions A ?

    Code:
    body:
    {
      "jsonrpc": "2.0",
      "method": "usergroup.update",
      "params": {
            "usrgrpid": "29",
            "rights": {
                   "id": "470",
                   "permission": "3"
             }
       },
       "auth": "2eba49ad11332c6706eb4e1ae7a0d982", "id": 1}
  • WytheNet
    Junior Member
    • Jul 2017
    • 6

    #2
    it is resloved! I found I can use "selectRights",it such as :

    Code:
    {
    "jsonrpc": "2.0",
    "method": "usergroup.get",
    "params": {
      "output": "extend",
     "search": {
        search_type: search_name
      },
    "selectRights":[
      "permission", "id" ],
    "excludeSearch": exsearch,
    "searchWildcardsEnabled": "true" },
    "id": 11,
    "auth": token }

    Comment

    Working...