A
A
Askfortrue2021-10-27 10:26:21
1C-Bitrix
Askfortrue, 2021-10-27 10:26:21

How to display all users bound to an element?

Good afternoon!
Question.
There is an element, several Users are bound to it through a custom property,
the ID of the element to which users are bound. Do you know how to display the IDs of all users bound to this element?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
no_one_safe, 2021-10-27
@no_one_safe

CUser::GetList

$arFilter = array(
   '=UF_ELEMENT' => $iElementId
);
$elementsResult = CUser::GetList(($by="ID"), ($order="DESC"), $arFilter);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question