The method allows to retrieve users according to the given parameters.
Parameters
(object)
Parameters defining the desired output.
The method supports the following parameters.
an array of objects;
the count of retrieved objects, if the
countOutput
parameter has been used.
Examples
Retrieving users
Retrieve all of the configured users.
Response:
- {
- "jsonrpc": "2.0",
- "result": [
- {
- "userid": "1",
- "alias": "Admin",
- "name": "Zabbix",
- "url": "",
- "autologin": "1",
- "autologout": "0s",
- "lang": "ru_RU",
- "refresh": "0s",
- "type": "3",
- "theme": "default",
- "attempt_failed": "0",
- "attempt_ip": "",
- "attempt_clock": "0",
- "rows_per_page": "50"
- },
- {
- "userid": "2",
- "alias": "guest",
- "name": "Default2",
- "url": "",
- "autologin": "0",
- "autologout": "15m",
- "lang": "en_GB",
- "refresh": "30s",
- "type": "1",
- "theme": "default",
- "attempt_failed": "0",
- "attempt_ip": "",
- "attempt_clock": "0",
- "rows_per_page": "50"
- }
- ],
- "id": 1
- }
Source
CUser::get() in frontends/php/include/classes/api/services/CUser.php.