$filterUser = array(
"ACTIVE" => 'Y',
// "!GROUPS_ID"=>[1] -- так не будет фильтровать
);
$userResult = CUser::GetList(($by="NAME"), ($order="ASC"), $filterUser);
<?
global $USER;
$users = CUser::GetList(
($by="id"),
($order="desc"),
array(),
array("SELECT" => array('*'))
);
$userArray = array();
$arrayGroupIds = array();
while ($user = $users->Fetch()) {
if (in_array(1, CUser::GetUserGroup($user['ID'])))
{
} else {
$userArray [] =$user;
}
}
?>