1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-07-01 00:55:36 +02:00
Files
OpenIntegrations/docs/en/md/Bitrix24/Users-managment/Get-user.md
Vitaly the Alpaca (bot) 9c977d53e1 Main build (Jenkins)
2024-10-06 16:55:08 +03:00

2.0 KiB

sidebar_position
sidebar_position
2

Get user

Gets user information by ID

Function GetUser(Val URL, Val UserID, Val Token = "") Export

Parameter CLI option Type Description
URL --url String URL of webhook or a Bitrix24 domain, when token used
UserID --userid String, Number User ID
Token --token String Access token, when app auth method used

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


:::tip Method at API documentation: user.get :::

    URL    = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
    UserID = "490";

    Result = OPI_Bitrix24.GetUser(URL, UserID);

    URL    = "b24-ar17wx.bitrix24.by";
    Token  = "37d1fe66006e9f06006b12e400000001000...";
    UserID = "492";

    Result = OPI_Bitrix24.GetUser(URL, UserID, Token);
    
  oint bitrix24 GetUser --url "b24-ar17wx.bitrix24.by" --userid "80" --token "fe3fa966006e9f06006b12e400000001000..."

{
 "result": [
  {
   "ID": "574",
   "XML_ID": "57919700",
   "ACTIVE": true,
   "NAME": "Oleg",
   "LAST_NAME": "Lama",
   "EMAIL": "e04294d3-8aa4-4716-bef3-0641593b60e8@exepmple.org",
   "LAST_LOGIN": "",
   "DATE_REGISTER": "2024-10-05T03:00:00+03:00",
   "IS_ONLINE": "N",
   "TIMESTAMP_X": {},
   "PERSONAL_GENDER": "",
   "PERSONAL_BIRTHDAY": "",
   "PERSONAL_MOBILE": "88003553535",
   "UF_EMPLOYMENT_DATE": "",
   "UF_DEPARTMENT": [
    7
   ],
   "USER_TYPE": "employee"
  }
 ],
 "total": 1,
 "time": {
  "start": 1728140869.01278,
  "finish": 1728140869.04941,
  "duration": 0.0366261005401611,
  "processing": 0.00871896743774414,
  "date_start": "2024-10-05T18:07:49+03:00",
  "date_finish": "2024-10-05T18:07:49+03:00",
  "operating_reset_at": 1728141469,
  "operating": 0
 }
}