• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/classes/general/rest.php
  • Класс: CSocNetLogRestService
  • Вызов: CSocNetLogRestService::setGroupOwner
static function setGroupOwner($arFields): bool
{
	try
	{
		return Workgroup::setOwner([
			'groupId' => $arFields['GROUP_ID'] ?? null,
			'userId' => $arFields['USER_ID'] ?? null,
		]);
	}
	catch(Exception $e)
	{
		throw new SystemException($e->getMessage(), $e->getCode());
	}
}