• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/site/user.php
  • Класс: Bitrix\Crm\Controller\Site\User
  • Вызов: User::getAction
public function getAction()
{
	try
	{
		$result = static::getJsonResponse([
			'result' => WebForm\Embed\Rest::getUser(Main\Context::getCurrent()->getRequest()->toArray())
		]);
	}
	catch (\Exception $exception)
	{
		$result = static::getJsonResponse([
			'error' => true,
			'error_description' => $exception->getMessage(),
			'result' => []
		]);
	}

	return $result;
}