Overview
The User Management system provides administrators with complete control over user accounts, roles, and permissions. The system implements a hierarchical role-based access control (RBAC) model to ensure proper security and workflow separation.Access Control
Page-Level Authorization
The user management page enforces strict role-based access:User Roles
The system defines four distinct user roles, each with specific permissions:CONSULTA (View Only)
CONSULTA (View Only)
Permissions:
- View all registered requests
- Search and filter requests
- Access calendar and reports
- View digital files
- Cannot create or modify requests
- Cannot manage users
- Cannot configure system settings
- Cannot manage non-working days
CAPTURA (Data Entry)
CAPTURA (Data Entry)
Permissions:
- All CONSULTA permissions
- Create new requests
- Edit existing requests
- Update request status
- Manage request details
- Upload documents
- Cannot manage users
- Cannot access system configuration
- Cannot manage non-working days
SUPERVISIÓN (Supervisor)
SUPERVISIÓN (Supervisor)
Permissions:
- All CAPTURA permissions
- Committee follow-up functions
- Manage non-working days in calendar
- Create and manage users
- Change user passwords
- Oversight and quality control
- Cannot access full system configuration
ADMINISTRADOR (Administrator)
ADMINISTRADOR (Administrator)
Permissions:
- All SUPERVISIÓN permissions
- Full system configuration
- Manage all users (including other admins)
- Access to system catalogs
- Database management
- Complete system control
- None (full access)
Creating Users
Step-by-Step Process
Access User Management
Navigate to Creacion de Usuarios from the main menu (requires ADMINISTRADOR or SUPERVISIÓN role)
Fill User Information
Complete the user creation form:
- Nombre del usuario: Username for login
- Contraseña: Initial password (minimum 8 characters)
- Rol: Select appropriate role from dropdown
User Creation Form
Password Visibility Toggle
The password field includes a visibility toggle for easier data entry:- Click the eye icon to show/hide the password
- Helps prevent typos during user creation
- Automatically hides password by default for security
Managing Existing Users
User List View
The user management table displays:- ID: Unique system identifier
- NOMBRE: Username
- ROL: Assigned role
- ACCIONES: Available actions (Change Password, Delete)
Search and Filter
Quickly find users using the search bar:- Username
- User ID
- Role
Pagination
The user list is paginated for better performance:- Configurable page size (typically 12 users per page)
- Anterior (Previous) and Siguiente (Next) navigation
- Current page and total pages displayed
- Page size adjusts based on screen resolution
Password Management
Change User Password
Administrators and supervisors can reset passwords for any user:Enter New Password
Type the new password in the modal form
- Minimum 6 characters required
- System validates the length automatically
Password Requirements
Minimum Length: 6 charactersWhile the system enforces a minimum of 6 characters, it’s recommended to use stronger passwords with:
- Mix of uppercase and lowercase letters
- Numbers
- Special characters
Deleting Users
Delete Process
Confirm Deletion
A SweetAlert confirmation dialog appears:
- Title: “¿Estás seguro?”
- Message: “No podrás revertir esto.”
- Actions: “Sí, eliminar” or “Cancelar”
User Service Integration
The user management system integrates with the Usuario Service:Data Model
Best Practices
Use descriptive usernames: Choose usernames that clearly identify the person
Assign minimal permissions: Give users only the access level they need
Regular audits: Periodically review user accounts and remove inactive users
Document access: Keep records of who has what level of access
Immediate removal: Delete user accounts immediately when employees leave
Strong passwords: Encourage users to create strong, unique passwords
Security Features
Authentication
- Users must authenticate before accessing any part of the system
- Custom Authentication State Provider manages sessions
- Automatic session expiration for inactive users
Authorization
- Role-based access control on every page
- Server-side validation of permissions
- UI elements hidden based on user role
Password Security
- Passwords are hashed before storage
- Minimum length requirements enforced
- Password visibility toggle for secure entry
Role-Based UI Elements
Different UI elements appear based on user role:Troubleshooting
Cannot access user management
Cannot access user management
Cause: User does not have ADMINISTRADOR or SUPERVISIÓN roleSolution: Contact an administrator to upgrade your role or have them perform the user management task
Username already exists error
Username already exists error
Cause: Attempting to create a user with a username that’s already in useSolution: Choose a different username. Usernames must be unique across the system
Password too short error
Password too short error
Cause: Password does not meet minimum length requirementSolution: Use a password with at least 6 characters (8+ recommended)
Workflow Example
Next Steps
Request Management
See how different roles interact with requests
Calendar System
Learn about role-based calendar access