$arFilter = Array( "!UF_CARDCODE"=>false, "!LAST_LOGIN"=>false ); $rsUsers = CUser::GetList(($by="id"), ($order="asc"), $arFilter, array("SELECT"=>array("UF_*"))); while($arUser = $rsUsers->NavNext()) { ...