<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$user = new CUser;

	$arFields = Array(
	  "EMAIL"             => "bitrixoid@mail.ru",
	  "LOGIN"             => "bitrixoid@mail.ru",
	  "LID"               => "ru",
	  "ACTIVE"            => "Y",
	  "GROUP_ID"          => array(1,2),
	  "PASSWORD"          => "bitrixoid@mail.ru",
	  "CONFIRM_PASSWORD"  => "bitrixoid@mail.ru",
	);

	$ID = $user->Add($arFields);
	if (intval($ID) > 0)
		echo "Пользователь ".$login." успешно добавлен.";
	else
		echo $user->LAST_ERROR;	
		
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>