• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/office365.php
  • Класс: COffice365OAuthInterface
  • Вызов: COffice365OAuthInterface::getTenant
public function getTenant()
{
	$tokenInfo = $this->getStorageTokens();
	if($tokenInfo && $tokenInfo["PERMISSIONS"])
	{
		$permissions = unserialize($tokenInfo["PERMISSIONS"], ["allowed_classes" => false]);

		return $permissions["tenant"];
	}

	return false;
}