Get user busy
Gets an array of user events in the specified interval
- Parameters
- Advanced call ?
Function GetUserBusy(Val URL, Val Users, Val StartDate, Val EndDate, Val Token = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
| Users | --users | Number, Array Of Number | ✔ | IDs of users or a single user |
| StartDate | --from | Date | ✔ | Start date of the period |
| EndDate | --to | Date | ✔ | End date of the period |
| Token | --token | String | ✖ | Access token, when app auth method used |
Returns
Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Method at API documentation: calendar.accessibility.get
1C:Enterprise/OneScript code example
URL = "https://b24-ar17wx.bitrix24.by/rest/1/av5...";
CalendarID = "1648";
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 = "a5b00469006e9f06006b12e400000001000...";
CalendarID = "1650";
Result = OPI_Bitrix24.GetUserBusy(URL, User, StartDate, EndDate, Token);
- Bash
- CMD/Bat
oint bitrix24 GetUserBusy \
--url "b24-ar17wx.bitrix24.by" \
--users 1 \
--from "2026-05-26T14:16:33" \
--to "2026-06-02T14:16:33" \
--token "***"
oint bitrix24 GetUserBusy ^
--url "b24-ar17wx.bitrix24.by" ^
--users 1 ^
--from "2026-05-26T14:16:33" ^
--to "2026-06-02T14:16:33" ^
--token "***"
Result
{
"result": {
"1": [
{
"ID": "4680",
"NAME": "[Под вопросом]",
"DATE_FROM": "27.05.2026 14:16:00",
"DATE_TO": "27.05.2026 15:16:00",
"DATE_FROM_TS_UTC": "1779869760",
"DATE_TO_TS_UTC": "1782476160",
"~USER_OFFSET_FROM": 0,
"~USER_OFFSET_TO": 0,
"DT_SKIP_TIME": "N",
"TZ_FROM": "Europe/Minsk",
"TZ_TO": "Europe/Minsk",
"ACCESSIBILITY": "quest",
"IMPORTANCE": "low",
"EVENT_TYPE": null
},
{
"ID": "4684",
"NAME": "[Под вопросом]",
"DATE_FROM": "27.05.2026 14:16:00",
"DATE_TO": "27.05.2026 15:16:00",
"DATE_FROM_TS_UTC": "1779869760",
"DATE_TO_TS_UTC": "1782476160",
"~USER_OFFSET_FROM": 0,
"~USER_OFFSET_TO": 0,
"DT_SKIP_TIME": "N",
"TZ_FROM": "Europe/Minsk",
"TZ_TO": "Europe/Minsk",
"ACCESSIBILITY": "quest",
"IMPORTANCE": "low",
"EVENT_TYPE": null
}
]
},
"time": {
"start": 1779804994,
"finish": 1779804994.46742,
"duration": 0.467421054840088,
"processing": 0,
"date_start": "2026-05-26T14:16:34+00:00",
"date_finish": "2026-05-26T14:16:34+00:00",
"operating_reset_at": 1779805594,
"operating": 0
}
}