Получаем данные пользователя
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
global $USER;
//$arFilterUser = array("ID" => $USER->GetID());
//$UserId = array(1, 2);
//$UserIdForm = implode(" | ", $UserId);
//$arFilter = array("ID" => $UserIdForm);
//$arSelect = array("SELECT"=>array("UF_*"));
$arSelect = array("FIELDS"=>array("EMAIL"));
$arRes = CUser::GetList($by,$desc,$arFilter,$arSelect);
while ($arUser = $arRes->GetNext())
{
echo $arUser["EMAIL"]." ".$arUser["DATE_REGISTER"]."<br>";
}
}
//или по группе
$dbUsers = CUser::GetList(($by="id"), ($order="desc"), Array("GROUPS_ID" => 5));
while($arUser = $dbUsers->Fetch()) :
echo '<pre>';
print_r($arUser);
echo '</pre>';
endwhile;