• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/intranet/internals/runtime/userdepartment.php
  • Класс: BitrixTasksIntegrationIntranetInternalsRuntimeUserDepartment
  • Вызов: UserDepartment::getDepartmentUfId
static function getDepartmentUfId()
{
	static $userField;

	if (is_null($userField))
	{
		$userField = CUserTypeEntity::getList(
			array(),
			array(
				'ENTITY_ID' => 'USER',
				'FIELD_NAME' => 'UF_DEPARTMENT',
			)
		)->fetch();
	}

	return $userField['ID'] > 0 ? $userField['ID'] : false;
}