> For the complete documentation index, see [llms.txt](https://spice.docs.medtroniclabs.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spice.docs.medtroniclabs.org/admin-guide/admin-guide.md). Agents can also search and read this documentation through its [MCP server](https://spice.docs.medtroniclabs.org/~gitbook/mcp).

# Admin Portal Overview

The SPICE Admin Portal is the web application that programme administrators use to set up and maintain a SPICE deployment. From the portal you manage the geographic hierarchy, health facilities, users and their access, clinical workflows, and the medication and lab test databases that the mobile app relies on.

This page explains how to sign in, how the portal is laid out, and what each administrator role can do. The detailed tasks are covered in the pages linked from each section.

## What you can do in the portal

| Area                                    | What it covers                                                                                                                         | Guide                                                                                                                  |
| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Administrative hierarchy                | View and bulk-upload the region, district, sub-district and village structure. Add, rename and deactivate districts and sub-districts. | [Administrative Hierarchy](https://spice.docs.medtroniclabs.org/admin-guide/country-level-administrative-divisions.md) |
| Facilities                              | Create and edit facilities, link them to villages, choose the workflows each facility uses, and deactivate or reactivate them.         | [Facilities](https://spice.docs.medtroniclabs.org/admin-guide/facilities.md)                                           |
| Users, roles and access                 | Create users, assign roles and sites, reset passwords, activate or deactivate accounts.                                                | [Users, Roles & Access](https://spice.docs.medtroniclabs.org/admin-guide/users-roles-and-access.md)                    |
| Locked accounts and deactivated records | Unlock users who were locked out and reactivate deactivated districts.                                                                 | [Account Lock & Unlock](https://spice.docs.medtroniclabs.org/admin-guide/account-lock-and-unlock.md)                   |
| Workflows and forms                     | Turn clinical workflows on or off, define customised workflows, and customise forms.                                                   | [Workflow & Form Configuration](https://spice.docs.medtroniclabs.org/admin-guide/clinical-workflow-customization.md)   |
| Medications and lab tests               | Maintain the medication list and the lab and imaging test database.                                                                    | [Medications & Lab Tests](https://spice.docs.medtroniclabs.org/admin-guide/medications-and-lab-tests.md)               |

## Sign in

1. Open the portal address provided by your organisation.
2. Enter your **Email, username or mobile number** and your **Password**.
3. Select **Remember me** if you want the portal to remember your sign-in details on this browser. Do not use this option on shared computers.
4. Select the sign-in button.

If you are a new user, you receive an email with a link to set your password. Open the link, enter and confirm your password, and then sign in. The link expires after a limited time (60 minutes by default). If you see the message **Link has expired.**, ask an administrator to send you a new link, or use **Forgot password?** on the sign-in page.

If you cannot remember your password, select **Forgot password?**, enter your email address and submit the form. If an account exists for that address, a reset link is emailed to you. For security the portal shows the same confirmation whether or not the address is registered.

Passwords must be 6 to 64 characters long, contain at least one uppercase letter, one lowercase letter and one number, and use letters and numbers only. A password cannot be a common password and cannot be the same as the part of your email address before the @ sign.

If you enter the wrong password too many times in a row (5 times by default), the account is locked. See [Account Lock & Unlock](https://spice.docs.medtroniclabs.org/admin-guide/account-lock-and-unlock.md).

### Terms and conditions

If your organisation has published terms and conditions for the deployment, administrators other than super administrators see a **Terms and Conditions** window the first time they sign in. Select **Accept** to continue, or **Decline** to be signed out.

## The landing page

After you sign in, the portal shows the suites you have access to:

| Suite        | Purpose                                   |
| ------------ | ----------------------------------------- |
| **Admin**    | This portal.                              |
| **Reports**  | The reporting web application.            |
| **Insights** | The analytics and dashboards application. |

If you have access to only one suite, the portal opens it automatically and you do not see the landing page. Opening **Admin** takes you to the home page for your role.

| Role                                                | Home page                                                                        |
| --------------------------------------------------- | -------------------------------------------------------------------------------- |
| Super administrator                                 | List of regions, shown as cards with district, sub-district and facility counts. |
| Region administrator                                | List of districts.                                                               |
| District administrator                              | List of sub-districts.                                                           |
| Sub-district administrator                          | List of facilities.                                                              |
| Facility administrator                              | The facilities you administer.                                                   |
| Manager roles (area, regional or head-office level) | The list of regions. The portal opens your own region automatically.             |

The names shown on screen for the geographic levels (for example, **District** or **Sub District**) and for facilities are configured for your deployment, so your portal may use different words from this guide.

## Navigate the portal

* **Breadcrumb.** The bar at the top of each page shows where you are in the hierarchy. Select an earlier item to go back up.
* **Side menu.** Inside a region, a menu on the left lists the areas available to your role. Typical entries are the region summary, facilities, users, the lab and imaging database, and the medication database. The entries you see depend on your role and on how your deployment is configured. On small screens, select the menu icon to show or hide it.
* **Cards and lists.** Home pages use cards with a search box and a **Load More** button. Management pages use tables with a search box, optional filters, and icons to view, edit, delete or change the password of a row.
* **User menu.** Select your name at the top right to open the user menu.

| User menu item                               | What it does                                                                       | Who sees it                                                       |
| -------------------------------------------- | ---------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| **My Profile**                               | Shows your own details. Select **Edit My Profile** to change them.                 | Everyone                                                          |
| **Change Password**                          | Changes your own password. You enter your old password, then a new password twice. | Everyone                                                          |
| **Deactivated Records**                      | Lists deactivated districts so that you can reactivate them.                       | Super administrators and region administrators                    |
| **Locked Users**                             | Lists users who are locked out and lets you unlock them.                           | Super, region, district, sub-district and facility administrators |
| **Region, District or Sub District Details** | Opens the summary of the area you administer.                                      | Region, district and sub-district administrators                  |

## Administrator roles

The portal follows the hierarchy. Each administrator manages their own area and everything below it, and can create users only with roles junior to their own. Super administrators can also create users at their own level.

| Role                                                    | Scope                  | What this role can do                                                                                                                                                                                                                                                                                                                   |
| ------------------------------------------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Super administrator**                                 | All regions            | Create regions and their first region administrator. Upload and download the hierarchy. Manage districts, sub-districts, facilities, users and administrators. Maintain the medication and lab test databases, workflows, programmes and form customisation. Manage consent forms. Unlock users and reactivate districts.               |
| **Region administrator**                                | One region             | View the region and its hierarchy (read-only). Add, rename and deactivate districts, and add and rename sub-districts. Manage facilities and users within a district. Maintain the medication and lab test databases, workflows, programmes and form customisation. Unlock users and reactivate districts. Cannot upload the hierarchy. |
| **District administrator**                              | One district           | Add and rename sub-districts. Create and edit facilities in the district. Manage users in the district. View the district summary (read-only). Unlock users in the district.                                                                                                                                                            |
| **Sub-district administrator**                          | One sub-district       | Create and edit facilities in the sub-district and manage users and administrators for them. View the sub-district summary (read-only). Unlock users in the sub-district.                                                                                                                                                               |
| **Facility administrator**                              | One or more facilities | View and edit the facility, and add, edit and deactivate or delete users in the facility. Cannot edit or delete other facility administrators. Unlock users in the facility.                                                                                                                                                            |
| **Manager roles (area, regional or head-office level)** | A region, read-mostly  | View the region and its hierarchy (read-only). Work with facilities and users across the region. These roles use the facilities and users pages rather than the configuration pages.                                                                                                                                                    |

Each administrator role has a matching set of **Reports** and **Insights** roles, such as report administrator, facility report administrator, insights user and insights developer. These control access to the other suites and are assigned on the same user form. See [Users, Roles & Access](https://spice.docs.medtroniclabs.org/admin-guide/users-roles-and-access.md).

## Before you start

* Plan the hierarchy first. Facilities link to villages, and users link to facilities, so the hierarchy must exist before you create them.
* Have the list of facilities, facility types and the workflows each facility will use ready before you create facilities.
* Decide who will administer each level. Create the region administrator first, then let each administrator create the roles below them.

## Next steps

1. [Set up the administrative hierarchy](https://spice.docs.medtroniclabs.org/admin-guide/country-level-administrative-divisions.md).
2. [Create facilities](https://spice.docs.medtroniclabs.org/admin-guide/facilities.md).
3. [Create users and assign roles](https://spice.docs.medtroniclabs.org/admin-guide/users-roles-and-access.md).
