Служебные инструменты · main
Учётные записи и дополнительные поля
main_account_administration_details_m085_readЧтениеЗаметки администратора о пользователе · Значение дополнительного поля пользователя · Группы пользователя перед изменением.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Читает служебную заметку администратора дословно, включая переносы строк, до 65535 байт UTF-8. Не заданная заметка и пустая строка различаются. Возвращает revision для изменения. Доступно только администратору.
user_id- целое число · обязательный параметр
Номер пользователя из accounts_list.
{
"type": "object",
"properties": {
"user_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"description": "Номер пользователя из accounts_list."
}
},
"required": [
"user_id"
],
"additionalProperties": false
}Читает выбранное дополнительное поле пользователя и возвращает revision для последующей записи. Поддержаны одиночные строки, целые и дробные числа, логические значения, варианты списка, даты, время, ссылки, форматируемый текст и связи с разделом или элементом. Форматирование текста не исполняется; ссылки не открываются. Файлы и предпросмотр ссылок возвращают только сохранённый ID без выдачи доступа к ресурсу. Множественные строки, целые числа, логические значения и варианты списка возвращаются в сохранённом порядке с повторами. null означает, что значения ещё не инициализированы; [] означает сохранённый пустой список. Неподдержанные нестандартные типы и обработчики дают явный отказ. Timezone-enabled datetime fields are read-only by default; the explicit finite actor_wall_time profile on GET and UPDATE admits supported optional or mandatory SINGLE and MULTIPLE writes: mandatory input cannot clear; value retains the stored server timestamp (ISO without a timezone suffix), while native_display returns Bitrix current-actor display. No fixed-offset conversion is substituted. HL-block references return their selected registered target IDs after native current-actor block read authorization and per-item membership checks. A stored zero is preserved as no selection, distinct from null and an empty list. No target display values are returned. Writes require an explicit hl_reference_write_profile with the same profile on GET and UPDATE. For an optional SINGLE HL reference, hl_reference_write_profile=single_clear on GET and UPDATE supplies a separate complete write revision. A genuine administrator may clear one positive existing relation on an existing user, including USER1 and the current administrator, with value=null and confirm=true. Existing UTS and full raw UTS/UTM preservation are required. The separate single_attach_repoint profile accepts a positive existing target ID for an optional or mandatory searchable or nonsearchable SINGLE field after native block ACL, compiler-graph and per-item membership checks, repeated before and after original CUser Update. Mandatory fields cannot be cleared. SINGLE attach may create the first UTS row when all existing non-key columns are nullable with NULL defaults and the whole-user UTM set is empty, and original-session metadata proves a base InnoDB table without triggers under direct effective TRIGGER visibility; the full resulting raw row is verified. The separate multiple_replace profile accepts an ordered list of up to1024 positive existing target IDs in an initialized optional or mandatory searchable or nonsearchable MULTIPLE HL field; mandatory fields require at least one ID, [] clears optional fields only, order and repeats remain, and the resulting whole USER UTM graph is at most1024 rows. It requires the same profile on GET/UPDATE, a complete raw UTS/all-UTM revision and native per-target ACL/membership rechecks. Internal UTM IDs are not returned or claimed owned. Every explicit multiple_replace revision additionally requires original-session base-InnoDB/no-trigger/direct-TRIGGER visibility and exact DDL for both fixed b_uts_user and b_utm_user; these witnesses are repeated before the original owner and retained in the complete postimage. Only the generated b_utm_user table-option AUTO_INCREMENT counter may advance in a changed-write postimage; GET revision and final pre-owner raw DDL stay exact, while column AUTO_INCREMENT and every other DDL byte remain bound. Direct global SELECT metadata visibility, no incoming UTM DELETE cascades and no incoming selected-column UTS UPDATE cascades are also required for both first and initialized rows; unknown visibility refuses. Secondary UNIQUE indexes on b_uts_user are refused because native MySQL merge can otherwise update another user on a non-primary conflict. MULTIPLE also admits first-row initialization by a nonempty list only under the same qualified base-InnoDB/no-trigger/direct-TRIGGER visibility for both fixed b_uts_user and b_utm_user insert tables checks, an empty whole-user UTM set and nullable NULL-default non-key columns. Empty first-row input and existing-row NULL lists remain unsupported; no mixed resource fallback. Selected self profiles preserve raw revisions and verify only original native timestamp, authentication, session NAME and current-user cache effects. Normal native CUser effects run; uncertain attempts must not be retried automatically. Ordinary HL read revisions cannot authorize this write. MULTIPLE file and link-preview fields return ordered stored IDs only. Duplicates are preserved. null means uninitialized storage and [] means an initialized empty list. IDs grant no resource access; no file bytes, preview data or URLs are returned. Множественное поле «Ссылка» поддерживает упорядоченный список текста: Bitrix проверяет длину исходного значения, затем удаляет пробелы по краям каждого элемента и исключает пустые результаты. Повторы сохраняются. Адреса не открываются, метаданные ссылок не загружаются. Необязательные непоисковые множественные даты без значения по умолчанию поддерживают список YYYY-MM-DD; порядок и повторы сохраняются, [] очищает список, null не заменяет список. Необязательное непоисковое множественное время без значения по умолчанию поддерживает список YYYY-MM-DDTHH:mm:ss при USE_TIMEZONE=N. Это время без смещения; UTC и часовые пояса не преобразуются. Порядок и повторы сохраняются, [] очищает список. Optional nonsearchable MULTIPLE double accepts ordered decimal strings such as ["0.1","-2.50"]. Original Bitrix rounding and finite approximate DOUBLE storage apply; order and duplicates are retained; [] clears the list. Optional nonsearchable MULTIPLE formatted strings expose raw stored text. PATTERN is not rendered or applied. Order, whitespace and duplicates are retained; original Bitrix omits empty items; [] clears the list. Для одиночного необязательного поля «Файл» или «Предпросмотр ссылки» поддерживается только снятие ссылки: value=null, актуальный expected_revision и confirm=true. Сам файл, общие метаданные и изображение не удаляются. Прикрепление ID, загрузка файла и получение предпросмотра недоступны. Optional nonsearchable MULTIPLE section references accept positive integer IDs. Every target must belong to the configured IBlock and pass current original section read permissions and ACTIVE_FILTER. Order and duplicates are retained; [] clears the list. Optional nonsearchable MULTIPLE element references accept positive integer IDs. Every target must belong to the configured IBlock and pass current original element read permissions and ACTIVE_FILTER. Order and duplicates are retained; [] clears the list. SINGLE FILE accepts {upload:{name,content_base64,content_type}} up to4MiB through native CUser/FileType/CFile. Replacement preserves the previous shared file. An upload always attempts a new native file, including identical content; arbitrary stored file IDs are not accepted. For an absent USER UTS row, FILE get returns row_exists=false and value=null without creating storage. A confirmed native owned upload may create its first row; clearing an absent relation is unavailable. A SINGLE link preview accepts its existing original signed token as value; the signing key must already exist. Static S tokens retain the ordinary update path. Dynamic D tokens support the original Lists element-edit route only, using operation=preview/apply/status and request_id. The original route checks the current actor access; unknown attempts cannot be replayed automatically. T/F tokens, custom routes and ;image suffixes are refused. URL creation/refresh uses its separate resource profile. Optional native_file_view_context={signed} accepts one existing genuine native signed view context for a current USER FILE member. It calls original controller permissions and FileUploader getFileInfo once; it never creates a capability from stored IDs. The optional signed view requires PHP8.2 native sensitive-parameter redaction. The finite RU local text/plain .txt profile returns native metadata/viewer attributes and the original authenticated bearer URL. Images, transformers, unknown pending language catalogs and unqualified native callback/cache states require separate coverage. The signed capability retains original native bearer semantics; this wrapper checks current field membership only for this call. Local bytes are hashed for preservation. No file content is returned or preview/download requested.
user_id- целое число · обязательный параметр
Номер пользователя сайта.
field_id- целое число · обязательный параметр
Номер дополнительного поля пользователя. Выберите его из списка полей.
datetime_write_profile- строка
Opt in on GET and UPDATE to the finite SINGLE or MULTIPLE optional or mandatory USE_TIMEZONE=Y writer with IS_SEARCHABLE exactly N or Y. The original selected-name shouldReindex predicate must return false in the qualified native context; intranet/HR index writers remain unsupported: SINGLE also admits first-row initialization by a nonempty timestamp under the same qualified NULL-default full-row shape and empty whole-user UTM set, with a fixed original-session UTS InnoDB/DDL/no-trigger/direct-visibility/no-secondary-UNIQUE witness bound in the revision and final pre-owner snapshot and repeated byte-exact after the owner; no UTM write is reached. Initialized SINGLE behavior is unchanged. MULTIPLE admits first-row initialization by a nonempty list when all physical non-key columns are nullable with NULL default, the whole-user UTM set is empty, and fixed original-session UTS/UTM engine/DDL/trigger/foreign-key/unique-index safety images qualify. Existing MULTIPLE lists remain supported under those same physical proofs. First-row writes and existing initialized UTS values admit native prepared NONE, NOW/empty and canonical FIXED defaults (1000-9999), without applying them; explicit nonempty first-row values are never replaced by defaults. No unselected timezone or resource metadata; original actor, culture, site and main-option caches must qualify. Original current-actor dispatch owns actor timezone, automatic TZ cookie, effective default, invalid-zone zero fallback, fixed-offset zones and disabled identity; the automatic-option scalar may initialize naturally before the baseline. GET supplies the complete write revision. SINGLE input is actor wall time YYYY-MM-DDTHH:mm:ss; null clears an optional field only; the UTS row must already exist, so null cannot create the first row. MULTIPLE input is an ordered list of up to 1024 such nonempty strings, with an initialized selected list or the explicit first-row case, and at most 1024 total resulting UTM rows. [] clears an optional existing-row field only; first-row input must be nonempty; mandatory lists require at least one nonempty timestamp. Order and duplicates remain. Null is not a list. Changed lists generate new selected UTM IDs. Both native UTS and legacy UTM conversions are projected through original owners; no offset arithmetic is substituted. Output remains stored server time plus separate native display. Raw physical images enter the full revision and repeat before the original owner; only the generated nondecreasing UTM AUTO_INCREMENT table option may differ after a changed write, while column attributes and every other DDL/state byte stay bound.
hl_reference_write_profile- строка
Use on GET and UPDATE for the complete raw USER UTS/UTM write revision. Genuine admin editing an existing user, including USER1 or self under the native self-update effect checks; optional searchable or nonsearchable SINGLE HL reference, existing UTS, positive currently accessible target. UPDATE accepts value=null only. Clears relation through original CUser; no target deletion or assignment. single_attach_repoint on both GET and UPDATE instead admits a positive existing target ID for an optional or mandatory searchable or nonsearchable SINGLE field after separate native target ACL/membership checks; mandatory fields cannot be cleared. A full-row write revision is required. IS_SEARCHABLE accepts exactly N or Y. Before original USER update, the source-qualified selected-name native shouldReindex predicate must return false; intranet/HR indexing contexts remain unsupported. SINGLE attach may create the first UTS row only when all existing non-key columns are nullable with NULL defaults and the whole-user UTM set is empty, and original-session metadata proves a base InnoDB table without triggers under direct effective TRIGGER visibility; no target creation. First-row storage additionally requires direct effective SELECT index visibility and no secondary UNIQUE indexes, so native MySQL duplicate-key merge can select only the intended VALUE_ID. Ordinary stored-read revisions are ineligible. multiple_replace instead admits an initialized optional or mandatory searchable or nonsearchable MULTIPLE HL integer list in an existing UTS row: ordered positive integer IDs, up to1024 and at most1024 resulting whole-user UTM rows; mandatory fields require at least one ID, and [] clears optional fields only. Every distinct target requires current native ACL/membership. Order and repeats survive original CUser; internal UTM IDs are not returned or claimed owned. Every explicit multiple_replace revision additionally requires original-session base-InnoDB/no-trigger/direct-TRIGGER visibility and exact DDL for both fixed b_uts_user and b_utm_user; these witnesses are repeated before the original owner and retained in the complete postimage. Only the generated b_utm_user table-option AUTO_INCREMENT counter may advance in a changed-write postimage; GET revision and final pre-owner raw DDL stay exact, while column AUTO_INCREMENT and every other DDL byte remain bound. Direct global SELECT metadata visibility, no incoming UTM DELETE cascades and no incoming selected-column UTS UPDATE cascades are also required for both first and initialized rows; unknown visibility refuses. Secondary UNIQUE indexes on b_uts_user are refused because native MySQL merge can otherwise update another user on a non-primary conflict. MULTIPLE additionally supports first-row initialization with a nonempty positive list only when the whole-user UTM set is empty, every existing non-key UTS column is nullable with NULL default, and the same original-session base-InnoDB/no-trigger/direct-TRIGGER visibility for both fixed b_uts_user and b_utm_user insert tables evidence is qualified before planning and immediately before the original owner. Empty first-row input is refused. Existing-row NULL lists and mixed resource fallback remain unsupported. USER1 and the current administrator use the same selected profiles; self updates additionally verify original actor timestamp, authentication, session NAME and native current-user cache effects.
native_file_view_context- объект
{
"type": "object",
"properties": {
"user_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"description": "Номер пользователя сайта."
},
"field_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"description": "Номер дополнительного поля пользователя. Выберите его из списка полей."
},
"datetime_write_profile": {
"type": "string",
"enum": [
"actor_wall_time"
],
"description": "Opt in on GET and UPDATE to the finite SINGLE or MULTIPLE optional or mandatory USE_TIMEZONE=Y writer with IS_SEARCHABLE exactly N or Y. The original selected-name shouldReindex predicate must return false in the qualified native context; intranet/HR index writers remain unsupported: SINGLE also admits first-row initialization by a nonempty timestamp under the same qualified NULL-default full-row shape and empty whole-user UTM set, with a fixed original-session UTS InnoDB/DDL/no-trigger/direct-visibility/no-secondary-UNIQUE witness bound in the revision and final pre-owner snapshot and repeated byte-exact after the owner; no UTM write is reached. Initialized SINGLE behavior is unchanged. MULTIPLE admits first-row initialization by a nonempty list when all physical non-key columns are nullable with NULL default, the whole-user UTM set is empty, and fixed original-session UTS/UTM engine/DDL/trigger/foreign-key/unique-index safety images qualify. Existing MULTIPLE lists remain supported under those same physical proofs. First-row writes and existing initialized UTS values admit native prepared NONE, NOW/empty and canonical FIXED defaults (1000-9999), without applying them; explicit nonempty first-row values are never replaced by defaults. No unselected timezone or resource metadata; original actor, culture, site and main-option caches must qualify. Original current-actor dispatch owns actor timezone, automatic TZ cookie, effective default, invalid-zone zero fallback, fixed-offset zones and disabled identity; the automatic-option scalar may initialize naturally before the baseline. GET supplies the complete write revision. SINGLE input is actor wall time YYYY-MM-DDTHH:mm:ss; null clears an optional field only; the UTS row must already exist, so null cannot create the first row. MULTIPLE input is an ordered list of up to 1024 such nonempty strings, with an initialized selected list or the explicit first-row case, and at most 1024 total resulting UTM rows. [] clears an optional existing-row field only; first-row input must be nonempty; mandatory lists require at least one nonempty timestamp. Order and duplicates remain. Null is not a list. Changed lists generate new selected UTM IDs. Both native UTS and legacy UTM conversions are projected through original owners; no offset arithmetic is substituted. Output remains stored server time plus separate native display. Raw physical images enter the full revision and repeat before the original owner; only the generated nondecreasing UTM AUTO_INCREMENT table option may differ after a changed write, while column attributes and every other DDL/state byte stay bound."
},
"hl_reference_write_profile": {
"type": "string",
"enum": [
"single_clear",
"single_attach_repoint",
"multiple_replace"
],
"description": "Use on GET and UPDATE for the complete raw USER UTS/UTM write revision. Genuine admin editing an existing user, including USER1 or self under the native self-update effect checks; optional searchable or nonsearchable SINGLE HL reference, existing UTS, positive currently accessible target. UPDATE accepts value=null only. Clears relation through original CUser; no target deletion or assignment. single_attach_repoint on both GET and UPDATE instead admits a positive existing target ID for an optional or mandatory searchable or nonsearchable SINGLE field after separate native target ACL/membership checks; mandatory fields cannot be cleared. A full-row write revision is required. IS_SEARCHABLE accepts exactly N or Y. Before original USER update, the source-qualified selected-name native shouldReindex predicate must return false; intranet/HR indexing contexts remain unsupported. SINGLE attach may create the first UTS row only when all existing non-key columns are nullable with NULL defaults and the whole-user UTM set is empty, and original-session metadata proves a base InnoDB table without triggers under direct effective TRIGGER visibility; no target creation. First-row storage additionally requires direct effective SELECT index visibility and no secondary UNIQUE indexes, so native MySQL duplicate-key merge can select only the intended VALUE_ID. Ordinary stored-read revisions are ineligible. multiple_replace instead admits an initialized optional or mandatory searchable or nonsearchable MULTIPLE HL integer list in an existing UTS row: ordered positive integer IDs, up to1024 and at most1024 resulting whole-user UTM rows; mandatory fields require at least one ID, and [] clears optional fields only. Every distinct target requires current native ACL/membership. Order and repeats survive original CUser; internal UTM IDs are not returned or claimed owned. Every explicit multiple_replace revision additionally requires original-session base-InnoDB/no-trigger/direct-TRIGGER visibility and exact DDL for both fixed b_uts_user and b_utm_user; these witnesses are repeated before the original owner and retained in the complete postimage. Only the generated b_utm_user table-option AUTO_INCREMENT counter may advance in a changed-write postimage; GET revision and final pre-owner raw DDL stay exact, while column AUTO_INCREMENT and every other DDL byte remain bound. Direct global SELECT metadata visibility, no incoming UTM DELETE cascades and no incoming selected-column UTS UPDATE cascades are also required for both first and initialized rows; unknown visibility refuses. Secondary UNIQUE indexes on b_uts_user are refused because native MySQL merge can otherwise update another user on a non-primary conflict. MULTIPLE additionally supports first-row initialization with a nonempty positive list only when the whole-user UTM set is empty, every existing non-key UTS column is nullable with NULL default, and the same original-session base-InnoDB/no-trigger/direct-TRIGGER visibility for both fixed b_uts_user and b_utm_user insert tables evidence is qualified before planning and immediately before the original owner. Empty first-row input is refused. Existing-row NULL lists and mixed resource fallback remain unsupported. USER1 and the current administrator use the same selected profiles; self updates additionally verify original actor timestamp, authentication, session NAME and native current-user cache effects."
},
"native_file_view_context": {
"type": "object",
"properties": {
"signed": {
"type": "string",
"minLength": 1,
"maxLength": 4096
}
},
"required": [
"signed"
],
"additionalProperties": false
}
},
"required": [
"user_id",
"field_id"
],
"additionalProperties": false
}Показывает назначенные группы и сроки доступа в серверном времени. Возвращает revision для подтверждения следующего изменения. Группа 2 «Все пользователи» подразумевается ядром и не назначается вручную. Только администратор.
user_id- целое число · обязательный параметр
{
"type": "object",
"properties": {
"user_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
}
},
"required": [
"user_id"
],
"additionalProperties": false
}Показывает, считается ли пользователь сейчас в сети, когда он был активен и понятное описание времени. Битрикс определяет статус по сохранённой активности. Например, user_id:10 проверяет пользователя №10. Доступно администратору. Дополнительные обработчики и изменённые переводы требуют отдельной проверки совместимости.
user_id- целое число · обязательный параметр
{
"type": "object",
"properties": {
"user_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"title": "Номер пользователя"
}
},
"required": [
"user_id"
],
"additionalProperties": false
}Проверяет штатную дату активности за указанный интервал в секундах. Например, interval_seconds=300 означает последние пять минут. Если интервал не указан, используется текущая настройка ядра; поддерживаются интервалы от 1 до 86400 секунд. recently_active сообщает о недавней активности, но не подтверждает текущую авторизованную сессию. Даты и данные профиля не выдаются.
user_id- целое число · обязательный параметр
interval_seconds- целое число
{
"type": "object",
"properties": {
"user_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"title": "Номер пользователя"
},
"interval_seconds": {
"type": "integer",
"minimum": 1,
"maximum": 86400,
"title": "Интервал в секундах"
}
},
"required": [
"user_id"
],
"additionalProperties": false
}Считает все записи пользователей сайта, включая неактивные и служебные. max_count задаёт порог точного подсчёта: до него count_kind=exact, при превышении count_kind=at_least и count показывает подтверждённую нижнюю границу max_count+1. Например, при max_count=100 и count=101 известно, что записей не меньше 101. Это число учётных записей, а не показатель лицензии.
max_count- целое число
{
"type": "object",
"properties": {
"max_count": {
"type": "integer",
"minimum": 1,
"maximum": 1000000,
"default": 100000,
"title": "Порог точного подсчёта"
}
},
"required": [],
"additionalProperties": false
}Ищет фрагменты имени, фамилии и отчества. Все слова должны встретиться хотя бы в одном из этих полей. Например, Иван Петров или Анна-Мария О’Нил. Лишние обычные пробелы убираются; дефисы, апострофы и точки внутри слов сохраняются. Знаки фильтров, кавычки и шаблоны поиска не принимаются. Порядок — по номеру пользователя; для следующей страницы передайте next_after_id как after_id. Возвращает только номер и три части имени, включая пустые значения. Неактивные, заблокированные и служебные записи тоже могут совпасть. Регистр и особенности сравнения определяет база сайта. Размер страницы ограничен, однако общий объём работы штатного поиска не ограничивается этим размером. Доступно только действующему администратору. Данные не изменяет.
query- строка · обязательный параметр
До 8 слов; максимум 256 байт всего и 64 байта на слово. Обычные пробелы разделяют слова.
limit- целое число
Размер страницы, по умолчанию 20.
after_id- целое число
Номер последнего пользователя предыдущей страницы.
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"description": "До 8 слов; максимум 256 байт всего и 64 байта на слово. Обычные пробелы разделяют слова."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"description": "Размер страницы, по умолчанию 20."
},
"after_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"description": "Номер последнего пользователя предыдущей страницы."
}
},
"required": [
"query"
],
"additionalProperties": false
}Показывает коды, которые текущее ядро относит к виртуальным пользователям, с понятными пояснениями. Например, bot — служебная запись бота. Порядок и коды берутся из штатного API. Пояснения добавлены модулем и помогают читать список. Наличие кода не означает, что соответствующий модуль установлен, способ входа доступен или на сайте есть такие пользователи. Список способов входа предоставляется отдельным инструментом. Параметры не нужны.
Параметры не требуются. Передайте пустой объект {}.
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}Читает дату рождения, сайт уведомлений и настройки личного часового пояса. Пустые и не заданные значения сохраняются отдельно. Возвращает revision для последующего изменения.
user_id- целое число · обязательный параметр
Номер пользователя из accounts_list.
{
"type": "object",
"properties": {
"user_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"description": "Номер пользователя из accounts_list."
}
},
"required": [
"user_id"
],
"additionalProperties": false
}