User management in Inventario SUD is restricted to accounts holding the Obispo role. Only an Obispo can create new users, update account details, or remove users from the system. All other roles have read-only access to their own profile and cannot administer other accounts.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ChrisCore1/inventario_sud/llms.txt
Use this file to discover all available pages before exploring further.
Create a new user
Navigate to Configuración
Sign in as an Obispo and go to Configuración in the sidebar. The user management panel loads automatically.
Open the new user form
Click the Agregar usuario button at the top of the user list to open the creation form.
Fill in the required fields
Enter the user’s full name, email address, and a temporary password. All three fields are required — the form will not submit if any are blank.
Select a role
Choose a role from the dropdown. The available roles are Obispo and the standard user role. See Roles and permissions for what each role can do.
If the email address is already registered, the form returns the error: “El correo electrónico ya está registrado.” Each email address must be unique across all accounts.
Edit a user
Open the edit form
Click the edit icon next to the user’s row. The form pre-fills with the current name, email, and role.
Update the fields
Change the name, email, or role as needed. Password changes are handled separately through the security settings panel.
Delete a user
Click the delete button
Click the delete icon next to the user’s row. A confirmation prompt appears.
The UsuarioConRol interface
The following TypeScript interface represents each user as returned by the Configuración page query. It is defined intypes/index.ts.
| Field | Type | Description |
|---|---|---|
id_usuario | number | Primary key for the user record. |
nombre_usuario | string | Display name shown in the UI and audit log. |
email | string | Unique login email. Used as the NextAuth identity. |
id_rol | number | Foreign key referencing the Rol table. |
nombre_rol | string | Human-readable role name joined from Rol. |
is_active | boolean | null | Whether the account is currently active. |
Every user management action — creation, update, and deletion — is automatically recorded in the audit log with the acting user’s ID, a timestamp, and the originating IP address. See Review the system audit log for details.
