• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/user.php
  • Класс: CAllUser
  • Вызов: CAllUser::UnblockAgent
static function UnblockAgent($userId)
{
	$user = new CUser();
	$user->Update($userId, ["BLOCKED" => 'N']);

	return '';
}