The Users section of the admin panel gives you full control over every account on the platform. You can browse the entire user base, narrow results with search and filters, inspect individual profiles in detail, and take moderation actions without leaving the browser.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/desarrolladorandres2026-gif/Native-tailwind/llms.txt
Use this file to discover all available pages before exploring further.
User List View
The user table is paginated at 20 rows per page and supports three simultaneous filters:| Filter | Values |
|---|---|
| Search | Free-text match against first_name, last_name, username, or correo (case-insensitive) |
| Role | user, admin, or asociado |
| Status | Active or inactive |
@username, email address, role badge, account status, real-time online indicator, and registration date. The online status is resolved at query time from the Socket.IO in-memory map — no database write is required.
API: List Users
User Detail View
Click Ver on any row to open a modal with the user’s full profile. The modal fetches data from a dedicated endpoint that also returns activity statistics.API: Single User Detail
stats object shows total matches the user has formed, total messages sent or received, and how many times they have been reported by others.
User Actions
Change Role
Promote or demote an account between the three available roles. The role selector is available inside the user detail modal.rol are "user", "admin", and "asociado". Any other value returns 400 Bad Request.
Toggle Account Status (Ban / Unban)
Deactivating an account setsactivo: false on the user document. The user can no longer log in or be matched. The toggle is reversible — calling the endpoint again re-activates the account.
Delete User (Permanent)
Permanently removes the account and cascades the deletion to all associated data.- All
Matchdocuments that reference the user’s ID - All
Mensajedocuments where the user is sender or receiver - All
Reportedocuments where the user is the reporter or the reported party
Online Users
The top bar of the panel displays a live count of connected users. This count is sourced fromGET /api/admin/online, which reads directly from the Socket.IO in-memory map of active socket connections.
The online count in the Dashboard KPI cards is also refreshed every 30 seconds via
GET /api/admin/stats, which includes the usuariosOnline field derived from the same socket map.API Endpoint Reference
| Method | Path | Description |
|---|---|---|
GET | /api/admin/users | Paginated user list with optional search, rol, activo query params |
GET | /api/admin/users/:id | Full profile and activity stats for one user |
PUT | /api/admin/users/:id/role | Change role — body: { "rol": "user" | "admin" | "asociado" } |
PUT | /api/admin/users/:id/toggle | Flip activo flag |
DELETE | /api/admin/users/:id | Permanently delete user and all related data |
GET | /api/admin/online | Currently connected socket user IDs and count |