Overview
The USR Service (Usuarios) manages organizational units (Unidades) within the HERCULES SGI system. It provides APIs for managing the organizational structure that is used across all modules for access control and reporting.Base URL:
Service Path:
http://localhost:4285 (development)Service Path:
/unidadesAuthentication
All endpoints require a valid OAuth2 access token with appropriate module-specific permissions.Unidades (Organizational Units)
Organizational units represent the administrative structure of the institution (departments, research groups, administrative offices, etc.).List Organizational Units
Retrieve a paginated and filtered list of organizational units.RSQL filter query for searching units (e.g.,
nombre=like='Departamento*')Sorting criteria (e.g.,
nombre,asc)Page number (0-indexed)
Page size
CSP-SOL-E- Edit grant applicationsCSP-SOL-V- View grant applicationsCSP-PRO-V- View projectsCSP-PRO-C- Create projectsCSP-PRO-E- Edit projectsCSP-PRO-B- Delete projectsCSP-PRO-R- Reactivate projectsCSP-ME-C- Create economic modelsCSP-ME-E- Edit economic modelsADM-CNF-E- Edit administration configuration
Get Organizational Unit by ID
Retrieve a specific organizational unit by its identifier.Organizational unit identifier
Unidad Model
Unique identifier for the organizational unit
Full name of the unit
Short acronym for the unit
Detailed description of the unit
Whether the unit is currently active
Parent unit ID (null for top-level units)
Reference to the person responsible for this unit
Public Endpoints
The USR service exposes public endpoints (no authentication required) for organizational units.Get Public Organizational Units
Retrieve organizational units without authentication.Public endpoints return only active organizational units with basic information.
RSQL Filter Examples
The USR service supports RSQL queries for flexible filtering:Integration with Other Services
The USR service provides organizational unit information that is used by:- CSP Service - Assigns projects and applications to units
- ETI Service - Ethics committee memberships tied to units
- PII Service - Invention ownership by units
- PRC Service - Research production grouped by units
Common Use Cases
Get All Active Departments
Find Unit by Acronym
Get Organizational Hierarchy
To retrieve a complete organizational hierarchy, fetch all units and build the tree structure based onunidadPadreId relationships.
Error Responses
HTTP status code
Error type
Human-readable error message
Related Documentation
Administrator Guide
Managing users and organizational units
Authorization
Role-based access control