Overview
The Módulo de Perfiles page lists all profiles registered in the system. From here you can create new profiles, edit existing ones, view their details, and delete them. Access requires thebitConsulta permission on the PERFIL module. Without it, the application redirects you to / before the page renders.
Filtering profiles
Two filters are available:| Filter | Description |
|---|---|
| Search by name | Case-insensitive partial match on strNombrePerfil |
| Profile type | Filter by administrator flag: all, administrators only, or standard users only |
The administrator flag
Each profile has abitAdministrador boolean. This flag is informational — it is displayed as a badge in the table (“Sí” / “No”) but does not automatically grant any specific permissions. Permissions are always controlled explicitly through the permissions matrix.
Creating a profile
Click Nuevo Perfil to open the creation form. This button requires bothbitConsulta and bitAgregar on the PERFIL module.
Enter a profile name
Provide a descriptive name in
strNombrePerfil (e.g., “Administrador”, “Ventas”, “Solo Lectura”). This field is required — the form will not submit if it is blank.Set the administrator flag
Check Administrador if this profile represents a system administrator role. This is optional and defaults to unchecked.
Editing a profile
Click the edit icon on any row to update the profile name or administrator flag. This requiresbitEditar on the PERFIL module. Changes take effect immediately and are reflected in the user directory.
Deleting a profile
Click the delete icon on any row and confirm the dialog. This requiresbitEliminar on the PERFIL module.
Assigning profiles to users
A profile is assigned to a user through the Assigned profile dropdown on the user creation or edit form in User management. A user can only have one profile at a time.Permission gates
Actions on the profiles page are gated by thePERFIL module:
| Permission flag | Controls |
|---|---|
bitConsulta | View the profiles table and access the page |
bitAgregar | Show the Nuevo Perfil button |
bitEditar | Show the edit button per row |
bitEliminar | Show the delete button per row |
bitDetalle | Show the detail view button per row |
Profile data model
Theperfil table is defined in server/database/schema.ts:
| Column | Type | Required | Description |
|---|---|---|---|
id | serial PK | Yes | Auto-increment primary key |
strNombrePerfil | varchar(255) | Yes | Human-readable profile name |
bitAdministrador | boolean | Yes | Whether this is an administrator profile |
Related pages
User management
Assign profiles to individual users.
Permissions matrix
Configure the module permissions granted to each profile.