﻿---
sidebar_position: 4
description: Get users and other functions to work with Bitrix24 in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Bitrix24]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Get users
 Get users information for dialog



`Function GetUsers(Val URL, Val UserIDs, Val Token = "") Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | URL | --url | String | &#x2714; | URL of webhook or a Bitrix24 domain, when token used |
  | UserIDs | --users | Array of String, Number | &#x2714; | Usesr ID or array of users IDs |
  | Token | --token | String | &#x2716; | Access token, when app auth method used |

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

<br/>

:::tip
Method at API documentation: [im.user.list.get ](https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=93&LESSON_ID=11493)
:::
<br/>



```bsl title="1C:Enterprise/OneScript code example"
    URL          = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
    ArrayOfUsers = New Array;

    ArrayOfUsers.Add(1);
    ArrayOfUsers.Add(10);

    Result = OPI_Bitrix24.GetUsers(URL, ArrayOfUsers);

    URL     = "b24-ar17wx.bitrix24.by";
    Token   = "11ae5d68006e9f06006b12e400000001000...";
    UserIDs = 10;

    Result = OPI_Bitrix24.GetUsers(URL, UserIDs, Token);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint bitrix24 GetUsers \
             --url "b24-ar17wx.bitrix24.by" \
             --users "[1,10]" \
             --token "***"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint bitrix24 GetUsers ^
             --url "b24-ar17wx.bitrix24.by" ^
             --users "[1,10]" ^
             --token "***"
        ```
    </TabItem>
</Tabs>


```json title="Result"
{
 "result": {
  "10": {
   "id": 10,
   "active": true,
   "name": "Techno Pizza",
   "first_name": "Techno",
   "last_name": "Pizza",
   "work_position": null,
   "color": "#ab7761",
   "avatar": "",
   "gender": "M",
   "birthday": "",
   "extranet": false,
   "network": false,
   "bot": false,
   "connector": false,
   "external_auth_id": "socservices",
   "status": "online",
   "idle": false,
   "last_activity_date": "2024-07-13T21:36:23+03:00",
   "mobile_last_date": false,
   "absent": false,
   "departments": [
    1,
    264
   ],
   "phones": false
  }
 },
 "time": {
  "start": 1728454841.79577,
  "finish": 1728454841.82182,
  "duration": 0.0260539054870605,
  "processing": 0.00196313858032227,
  "date_start": "2024-10-09T09:20:41+03:00",
  "date_finish": "2024-10-09T09:20:41+03:00",
  "operating_reset_at": 1728455441,
  "operating": 0
 }
}
```
