> ## Documentation Index
> Fetch the complete documentation index at: https://pabloferreyra.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage User Accounts and Role Assignments in Turnero

> Learn how clinic admins view user accounts, assign the Admin, Ingreso, and Medico roles, and control each person's access to Turnero features.

Turnero's Administration panel lets you manage all user accounts and control which features each person can access through role assignments. Only users with the **Admin** role can manage accounts and roles.

## Understanding Roles

Turnero has three built-in roles. Each role grants access to a specific set of features.

<Tabs>
  <Tab title="Admin">
    **Full system access.** Admins can manage all user accounts, assign roles, create and delete doctor profiles, configure time slots, and view or modify all appointments across the clinic.
  </Tab>

  <Tab title="Ingreso (Front Desk)">
    **Appointment operations.** Ingreso users can schedule, edit, delete, and export appointments. This role is intended for front-desk and reception staff.
  </Tab>

  <Tab title="Medico (Doctor)">
    **Clinical access.** Medico users can view their own appointment schedule and manage full patient visit records. This role must be assigned to any user linked to a doctor profile.
  </Tab>
</Tabs>

## Viewing Users

Navigate to **Administration → Users** to see all registered user accounts. The list displays each account's username and email address.

## Creating a User Account

<Note>
  User accounts are created by a system administrator. Once a user account exists, assign the appropriate role through the Administration panel as described below.
</Note>

After a user account is created, assign the appropriate role so the user can access the right features:

1. Go to **Administration → Users**.
2. Click **Edit** next to the user.
3. Assign the appropriate role (see [Assigning Roles](#assigning-roles) below).

## Editing a User

<Steps>
  <Step title="Go to Administration → Users">
    Open the main navigation menu and select **Administration → Users**.
  </Step>

  <Step title="Click Edit next to the user">
    Find the user you want to update and click the **Edit** button next to their name.
  </Step>

  <Step title="Update Username or Email">
    Modify the **Username** or **Email** fields as needed.
  </Step>

  <Step title="Save changes">
    Click **Save** to apply the updates. You are returned to the Users list.
  </Step>
</Steps>

## Assigning Roles

<Steps>
  <Step title="Go to Administration → Roles">
    Open the main navigation menu and select **Administration → Roles**.
  </Step>

  <Step title="Select the role to manage">
    Click the name of the role you want to manage — for example, **Medico**.
  </Step>

  <Step title="Click Edit Users in Role">
    On the role detail page, click **Edit Users in Role** to open the user assignment screen.
  </Step>

  <Step title="Add or remove users">
    Check the box next to a user to add them to the role, or uncheck the box to remove them.
  </Step>

  <Step title="Save">
    Click **Save** to apply your changes. Updated role assignments take effect on the user's next login.
  </Step>
</Steps>

## Deleting a User

1. Navigate to **Administration → Users**.
2. Click **Delete** next to the user you want to remove.
3. Confirm the deletion when prompted.

<Warning>
  Deleting a user is permanent and cannot be undone. Ensure the user has no pending appointments or active records before deleting their account.
</Warning>

## Managing Roles

Navigate to **Administration → Roles** to view all system roles. From this page you can create custom roles or edit existing role names.

To create a new role, click **Create Role**, enter a name, and save. To rename an existing role, click its name and update it on the edit screen.

<Warning>
  Renaming or deleting a built-in role (**Admin**, **Ingreso**, or **Medico**) will immediately break access control for every user assigned to that role. Do not modify the names of built-in roles.
</Warning>
