• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/monitor/utils/department.php
  • Класс: BitrixTimemanMonitorUtilsDepartment
  • Вызов: Department::getDepartmentsEmployees
static function getDepartmentsEmployees(array $departmentIds, bool $recursive = false): array
{
	$departmentsEmployees = [];

	$users = CIntranetUtils::getDepartmentEmployees($departmentIds, $recursive);

	while ($user = $users->Fetch())
	{
		$departmentsEmployees[] = (int)$user['ID'];
	}

	return $departmentsEmployees;
}