Skip to main content

Get user busy

Gets an array of user events in the specified interval

Function GetUserBusy(Val URL, Val Users, Val StartDate, Val EndDate, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
Users--usersNumber, Array Of NumberIDs of users or a single user
StartDate--fromDateStart date of the period
EndDate--toDateEnd date of the period
Token--tokenStringAccess token, when app auth method used

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

tip

Method at API documentation: calendar.accessibility.get


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

User = 1;

Week = 604800;
CurrentDate = OPI_Tools.GetCurrentDate();

StartDate = CurrentDate;
EndDate = CurrentDate + Week;

Result = OPI_Bitrix24.GetUserBusy(URL, User, StartDate, EndDate);

URL = "b24-ar17wx.bitrix24.by";
Token = "bafe5c69006e9f06006b12e400000001000...";
CalendarID = "1900";

Result = OPI_Bitrix24.GetUserBusy(URL, User, StartDate, EndDate, Token);
    oint bitrix24 GetUserBusy \
--url "b24-ar17wx.bitrix24.by" \
--users 1 \
--from "2026-01-06T10:11:59.3752918" \
--to "2026-01-13T10:11:59.3752918" \
--token "***"
Result
{
"result": {
"1": [
{
"ID": "3560",
"NAME": "[Под вопросом]",
"DATE_FROM": "07.01.2026 14:25:00",
"DATE_TO": "07.01.2026 15:25:00",
"DATE_FROM_TS_UTC": "1767774300",
"DATE_TO_TS_UTC": "1770380700",
"~USER_OFFSET_FROM": 0,
"~USER_OFFSET_TO": 0,
"DT_SKIP_TIME": "N",
"TZ_FROM": "Europe/Moscow",
"TZ_TO": "Europe/Moscow",
"ACCESSIBILITY": "quest",
"IMPORTANCE": "low",
"EVENT_TYPE": null
},
{
"ID": "3564",
"NAME": "[Под вопросом]",
"DATE_FROM": "07.01.2026 14:25:00",
"DATE_TO": "07.01.2026 15:25:00",
"DATE_FROM_TS_UTC": "1767774300",
"DATE_TO_TS_UTC": "1770380700",
"~USER_OFFSET_FROM": 0,
"~USER_OFFSET_TO": 0,
"DT_SKIP_TIME": "N",
"TZ_FROM": "Europe/Moscow",
"TZ_TO": "Europe/Moscow",
"ACCESSIBILITY": "quest",
"IMPORTANCE": "low",
"EVENT_TYPE": null
}
]
},
"time": {
"start": 1767709489,
"finish": 1767709489.04062,
"duration": 0.040618896484375,
"processing": 0,
"date_start": "2026-01-06T14:24:49+00:00",
"date_finish": "2026-01-06T14:24:49+00:00",
"operating_reset_at": 1767710089,
"operating": 0
}
}