A
A
Askfortrue2021-03-09 20:23:23
1C-Bitrix
Askfortrue, 2021-03-09 20:23:23

How to display the username by its ID?

Hello!
I have not come across such a task for a long time, and I completely forgot, tell me - how to display the username by its ID?
There is no need to use the main user link, but there is already a user ID, you need to display the name.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
I'm Yoda, 2021-03-09
@Anadi

$rsUser = CUser::GetByID($ID);
$arUser = $rsUser->Fetch();

CUser class

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question