User API Endpoints
The User API provides JSON-based endpoints for external applications to interact with user data without requiring form posts. This API is designed to facilitate easier integration with external systems and includes comprehensive security measures to protect against XSS attacks and brute force attempts.
Architecture
The User API follows a clean service-oriented architecture:
- UserController: Thin controller handling HTTP requests/responses and security
- UserService: Business logic for user data management and custom field handling
- SecurityService: Comprehensive protection against XSS and brute force attacks
- Cross-app compatibility: Custom name fields (firstName, lastName, middleName) stored in 'core' namespace for access by other NextCloud apps