• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/service/user.php
  • Класс: BitrixBizprocServiceUser
  • Вызов: User::getUserDepartmentChains
public function getUserDepartmentChains(int $userId): array
{
	$chains = [];

	foreach ($this->getUserDepartments($userId) as $departmentId)
	{
		$chains[] = $this->getDepartmentChain($departmentId);
	}

	return $chains;
}