Skip to main content
The Usuarios module lets administrators manage the user accounts that have access to AppAdministrativa. From this screen you can add new users, update existing credentials, and remove accounts that are no longer needed.

User data model

Each user account contains three fields:
UsuarioItem.cs
public class UsuarioItem
{
    public string ID { get; set; }            // User ID (e.g. "001")
    public string NombreUsuario { get; set; } // Username
    public string Password { get; set; }      // Password
}
FieldDescriptionExample
IDUnique numeric identifier for the user. Assigned at creation and read-only after saving.001
NombreUsuarioThe username used to log in. Must be unique across all accounts.Luis_Admin
PasswordThe account password stored for authentication.
Passwords are stored as part of the user record. Avoid using easily guessable values, and do not share passwords across accounts. Review your institution’s security policy for requirements on password length and complexity.

CRUD workflow

Adding a user

1

Open the Usuarios screen

Navigate to the Administration section and select Usuarios from the sidebar.
2

Click Agregar

Click Agregar. The AgregarUsuarioWindow dialog opens.
3

Fill in the user details

Enter a unique ID, a NombreUsuario, and a Password for the new account.
4

Confirm and save

Click the confirmation button in the dialog. When the dialog closes with a successful result (ShowDialog() == true), the new user is added to the table immediately.

Editing a user

1

Select a user

Click on the row in the table that corresponds to the account you want to update. A row must be selected before you can edit.
2

Click Editar

Click Editar. The AgregarUsuarioWindow dialog opens in edit mode, pre-populated with the selected user’s current values.
3

Update the fields

Change the NombreUsuario or Password as needed. The ID field identifies the record and should not be changed.
4

Save the changes

Confirm in the dialog. The table reflects the updated values immediately.
If you click Editar without first selecting a row, the application displays the message: “Por favor, selecciona un usuario de la tabla para editar.” Select a row and try again.

Deleting a user

1

Select the user to remove

Click on the row in the table for the account you want to delete.
2

Click Eliminar

Click Eliminar. A confirmation dialog appears:
¿Estás seguro de que deseas eliminar al usuario ?
The dialog uses a Yes/No warning prompt (per requirement RF_3.16).
3

Confirm the deletion

Click Yes to permanently remove the account. Click No to cancel without making any changes.
Deleting a user is permanent. The account cannot be recovered after you confirm the deletion. Verify you have selected the correct user before clicking Yes.

Sample accounts

The following accounts are pre-loaded as sample data:
IDNombreUsuarioNotes
001Luis_AdminAdministrator account
002Ariel_LaraStandard user
003User_TestTest account
Remove or update test accounts like User_Test before deploying the application in a production environment.

Best practices for usernames

Use a consistent format

Adopt a naming convention and apply it uniformly. For example, Firstname_Lastname or Role_Name (as seen in Luis_Admin and Ariel_Lara). Consistency makes it easier to identify account owners at a glance.

Avoid special characters

Stick to letters, numbers, and underscores in usernames. Special characters or spaces can cause unexpected behavior in downstream systems that consume the username field.

Reflect roles in admin usernames

For accounts with elevated privileges, include a role indicator in the username (e.g., _Admin). This makes it visually clear in the table which accounts have administrative access.

Disable test accounts before go-live

Delete or rename accounts created for testing purposes before the application goes live. Test credentials with known passwords are a common security risk.

Build docs developers (and LLMs) love