# Managing User Accounts

This section provides steps to create new user accounts, reset passwords and add/remove roles from the user

## Create a new user account

1. Login as a user with administrator privileges

   ![Login](/files/WjQgTIdSBeLEmwn6gJjG)
2. Click legacy administration link as circled in the image below

   ![Legacy System Administration Link](https://github.com/METS-Programme/ugandaemr-usermanual/blob/master/images/legacy_system%20administration_link.png)
3. Click on manage users link as shown below

   ![Manage Users Link](/files/DbftZkl7gov5VynU48Er)
4. Click on the Add User link as shown below

   ![Add User Link](/files/m95q4Vwk4GkYEGhJANvv)
5. Click the button under the Create new person text

   ![Create new person](/files/d11iayJqniEGEW5rNwWA)
6. Enter the details for the user account, making sure to select the following:
   * The create provider account must option
   * Select the System Developer and Provider roles

![User account information](/files/5ksd5cyYZKGJ74Bx0UDQ)

## Reset user account password

1. Click legacy administration link as circled in the image below

   ![Legacy System Adminstration Link](https://github.com/METS-Programme/ugandaemr-usermanual/blob/master/images/legacy_system%20administration_link.png)
2. Click on manage users link as shown below

   ![Manage Users Link](/files/DbftZkl7gov5VynU48Er)
3. Search for the user account to be updated then click the System Id of the user to edit

   ![Search for user account](/files/DbftZkl7gov5VynU48Er)
4. Enter the new password twice, and select the Force Password Change to ensure that the user changes their password at the next login

   ![Reset user password](/files/PAJhOsfMo3sHhbmfR6Lb)

## Add a new role to a user account

1. Click legacy administration link as circled in the image below

   ![Legacy System Administration Link](https://github.com/METS-Programme/ugandaemr-usermanual/blob/master/images/legacy_system%20administration_link.png)
2. Click on manage users link as shown below

   ![Manage Users Link](/files/DbftZkl7gov5VynU48Er)
3. Search for the user account to be updated then click the System Id of the user to edit

   ![Search for user account](/files/DbftZkl7gov5VynU48Er)
4. Select the roles for the new user account, current roles required are System Developer and Provider

   ![Select user roles](/files/MRHxucGFN9CcS6hEtgiA)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mets-programme.gitbook.io/ugandaemr-documentation/overview-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
