Max-pain of It-Infinity
10/18/2018 - 10:05 AM

Bitrix CUser::GetList

$arFilter = [
    'ACTIVE' => 'Y',
//	'ID' => 0,
];
$arParameters = [
    'FIELDS' => [
//        'ID',
//        'LOGIN',
//        'EMAIL',
    ],
    'SELECT' => [
//        'UF_*',
    ]
];
$CDBResult = CUser::GetList($sortBy='timestamp_x', $order='desc', $arFilter, $arParameters); // https://dev.1c-bitrix.ru/api_help/main/reference/cuser/getlist.php
while ($user = $CDBResult->GetNext(true, false)) {
	$arUsers[] = $user;
}