Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23225

Please add usergroup roleid = 4 (guest) to Role API docs

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Declined
    • Icon: Trivial Trivial
    • None
    • None
    • Documentation (D)
    • None

      Steps to reproduce:

      https://www.zabbix.com/documentation/current/en/manual/api/reference/role/object#role

      Result:

      Currently the roleid's documented on the frontend are:

        User type.
       
      Possible values:
      1 - (default) User;
      2 - Admin;
      3 - Super admin.
       
       
       
      Property behavior:
      • required for create operations

      Expected:

        User type.
       
      Possible values:
      1 - (default) User;
      2 - Admin;
      3 - Super admin;
      4 - Guest;
       
      Property behavior:
      • required for create operations

       

      This is according to:

      {       "roleid": "1",       "name": "User role",       "type": "1",       "readonly": "0"     }

      ,
         

      {       "roleid": "2",       "name": "Admin role",       "type": "2",       "readonly": "0"     }

      ,
         

      {       "roleid": "3",       "name": "Super admin role",       "type": "3",       "readonly": "1"     }

      ,
         

      {       "roleid": "4",       "name": "Guest role",       "type": "1",       "readonly": "0"     }

       

      as well as:

      mysql> select * from role limit 10;
      ------{}--------------{}+{}--{}{}--------

      roleid name             type readonly

      ------{}--------------{}+{}--{}{}--------

           1 User role            1        0
           2 Admin role          2        0
           3 Super admin role    3        1
           4 Guest role          1        0

      ------{}--------------{}+{}--{}{}--------
      4 rows in set (0.00 sec)

      mysql>

            ifedotjevs Ilja Fedotjevs
            1vannn Ivan Shires
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: