Skip to main content

Find users

Gets the list of users according to the specified filter

Function FindUsers(Val URL, Val FilterStructure, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
FilterStructure--filterStructure Of KeyAndValueFilter. See GetUserFilterStructure
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: user.update


1C:Enterprise/OneScript code example
    URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";

FilterStructure = New Structure;
FilterStructure.Insert("NAME" , "Vitaly");
FilterStructure.Insert("LAST_NAME" , "Alpaca");
FilterStructure.Insert("WORK_POSITION" , "DevOps engineer");
FilterStructure.Insert("UF_DEPARTMENT_NAME", "Marketing department");
FilterStructure.Insert("USER_TYPE" , "employee");

Result = OPI_Bitrix24.FindUsers(URL, FilterStructure);

URL = "b24-ar17wx.bitrix24.by";
Token = "75d8c668006e9f06006b12e400000001000...";

FilterStructure = New Structure;
FilterStructure.Insert("UF_DEPARTMENT_NAME", "Bitrix");

Result = OPI_Bitrix24.FindUsers(URL, FilterStructure, Token);
    oint bitrix24 FindUsers \
--url ""b24-ar17wx.bitrix24.by"" \
--filter ""/tmp/r2uvwcmi.m3l.json"" \
--token "***"
Result
{
"result": [],
"time": {
"start": 1757977006.95522,
"finish": 1757977007.00373,
"duration": 0.0485060214996338,
"processing": 0.0134780406951904,
"date_start": "2025-09-15T22:56:46+00:00",
"date_finish": "2025-09-15T22:56:47+00:00",
"operating_reset_at": 1757977606,
"operating": 0
}
}