# Create a user

## Overview

[Video: Create a user](https://www.youtube.com/watch?v=8jE5nYyWGgY)

This flow describes how to create a [user](https://docs.ohc.network/concepts/access-governance/user.md) account in Care. You create the account from the **Users** page of a government organization, a responsibility or a department.

You can also create a service account. The steps are the same, with the differences that this page describes.

## Pre-requisites

* The person does not have a Care account. Care does not accept a username that another user already has, even an archived user. Care does not accept an email or phone number that another user who is not archived already has.
* You can open the place where you add the user: a government organization that you are linked to, a responsibility on your dashboard, or a facility where you are in a department.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can create User in care | Shows **Add User** and lets you create the account. Care shows the button if you hold it in the organization or the responsibility, or in a parent organization. On a department page, a role in any department of the facility counts. By default, the Administrator role holds it in a government organization, the Facility Admin and Administrator roles hold it in a facility, and the Admin role holds it in a responsibility. |
| Can create service account in care | Lets you create a service account from the **Service accounts** tab. You hold it in the same places as "Can create User in care". By default, the Administrator role holds it in a government organization, and the Facility Admin and Administrator roles hold it in a facility. |
| Can List Users in an Organizations | Opens the **Users** list of a government organization or a responsibility. You must hold it in the organization or a parent organization, or in the responsibility or a responsibility that manages it. By default, the Volunteer, Doctor, Nurse, Staff and Administrator roles hold it in a government organization, and the Admin and Manager roles hold it in a responsibility. |
| Can List Users in a Facility Organizations | Opens the **Users** list of a department. You must hold it in a department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor and Nurse roles hold it. |
| Can Manage Users in a Facility Organization | Needed on a department page to link the new user to the department with a role. Hold it in that department, a parent department, or the root department of the facility. By default, the Facility Admin and Administrator roles hold it. |
| Can Manage Users in an Organization | Needed for each row that you fill in under **Role in this organization**. You must hold it in that responsibility, or hold "Can Manage Connected Role Organizations" in a responsibility that manages it. The **Designation** must not have a permission that you do not have there. By default, the Admin role of a responsibility holds it. |
| Can Manage Connected Role Organizations | Lets you add the new user to the responsibilities that a responsibility of yours manages. Those responsibilities then show in the **Responsibility** list. By default, the Admin and Manager roles of a responsibility hold it. |

## Steps

### 1. Open the Users page

Open the **Users** page of the place where you want to add the person.

* For a government organization, select the **Governance** tab on your dashboard. Select the organization. Then select the **Users** tab.
* You can also open the organization from **Organizations** in the sidebar.
* For a responsibility, select the **Responsibilities** tab on your dashboard. Select the responsibility. Care opens its **Users** list.
* For a department, open the facility. Select **Settings**, then **Departments**. Open the department, then select its **Users** tab.

To create a service account, select the **Service accounts** tab instead of **Users**. A responsibility has no **Service accounts** tab.

### 2. Open the Add New User form

Select **Add User**. Care opens the **Add New User** form.

For a service account, select **Add Service Account**. Care opens the **Add New Service Account** form.

If you do not see **Add User**, your role in this place does not have "Can create User in care".

Note: The form groups the fields in sections. On a narrow screen, the **Add New User** form shows the same fields without the section headings.

![Step 2, Open the Add New User form: the Care screen, with the control for this step outlined](/assets/images/create-user-1-2d3af09b774ef204402796495c79458f.webp)

### 3. Enter the personal details

Under **Personal details**, enter the name and the gender of the person.

| Components | What it captures |
| - | - |
| **Prefix** | A title before the name. Select Dr., Mr., Mrs., Ms., Miss or Prof., or type a different title. Optional. |
| **First Name** | The first name of the person. Required. |
| **Last Name** | The last name of the person. Required. |
| **Suffix** | Text that comes after the name. Optional. |
| **Gender** | Male, Female, Transgender or Non Binary. Required. |

![Step 3, Enter the personal details: the Care screen, with the control for this step outlined](/assets/images/create-user-2-82f6ad3113e3060a08e57ded6140ca99.webp)

### 4. Enter the sign-in details

Under **Sign-in**, enter the details that the person uses to sign in.

| Components | What it captures |
| - | - |
| **Username** | The sign-in name. Required. Use 4 to 16 characters: lowercase letters, numbers, underscore (\_) and hyphen (-). Start and end with a letter or a number. Do not put two underscores or hyphens next to each other. |
| **Email** | The email address of the person. Required. |
| **Password Setup Method** | Select **Set password now** to set the password yourself, so that the person can sign in at once. Select **Send email invitation** to let Care email the person a link to set a password. |
| **Password** | The password of the person. Shows only when you select **Set password now**. Required. Use at least 8 characters, with a lowercase letter, an uppercase letter and a number. |
| **Confirm Password** | The same password again. Shows only when you select **Set password now**. Required. |

As you type the username, Care shows **Checking Availability**. Then it shows **Username is available** or **Username is not available**.

The username of an archived user is also not available.

Care also refuses a password that is too common, that has only numbers, or that is too similar to the other details of the person.

Note: You cannot change the username or the email after you create the user.

A service account has no **Password Setup Method**.

![Step 4, Enter the sign-in details: the Care screen, with the control for this step outlined](/assets/images/create-user-3-115f478e60b6e127b8a8532c7e35a6f2.webp)

### 5. Enter the contact and location

Under **Contact and location**, enter the phone number and the government organization of the person.

| Components | What it captures |
| - | - |
| **Phone Number** | The phone number of the person. Required. It must not belong to another user who is not archived. |
| Government organization levels | The government organization of the person, one level at a time. Each list has the name of its level, for example **State**. Optional. |

If you opened **Add User** from a government organization, Care selects that organization for you.

Note: The settings of your deployment set the default country of the phone number.

![Step 5, Enter the contact and location: the Care screen, with the control for this step outlined](/assets/images/create-user-4-c63055df5b175443f399b2e8e39dff56.webp)

### 6. Add responsibilities

Under **Role in this organization**, each row links the new user to a responsibility, with a designation.

| Components | What it captures |
| - | - |
| **Responsibility** | A responsibility of the new user. The list shows the responsibilities that you belong to. It also shows the responsibilities that a responsibility of yours manages, if you hold "Can Manage Connected Role Organizations" there. |
| **Designation** | The role of the new user in that responsibility. By default, the roles are Admin, Manager and Member. Your deployment can have more roles. |

* The rows are optional. To add no responsibility, leave the row empty. Care ignores an empty row.
* Each row needs both a **Responsibility** and a **Designation**. If a row has only one of them, Care does not create the user. It shows **Select both a responsibility and a designation for each assignment, or remove the incomplete one.** and marks the empty field in red.
* To remove a row, select its delete icon.
* If you opened **Add User** from a responsibility, the first row already has that responsibility. Select a **Designation** for it.
* To add one more responsibility, select **Add Another**. You can add each responsibility one time only.

Note: Care saves a row only if you can manage the users of that responsibility, and the designation has no permission that you do not have there. If one row fails, Care does not create the user.

### 7. Add languages and qualifications

Under **Professional profile**, add the languages and the qualifications of the person. A service account does not have this section.

Under **Languages**, select **Add language** for each language that the person uses with patients and colleagues.

| Components | What it captures |
| - | - |
| **Language** | The language. Search by the name or the code of the language. Required in each row. |
| **Proficiency** | How well the person uses the language: **Not Specified**, **A1 · Beginner**, **A2 · Elementary**, **B1 · Intermediate**, **B2 · Upper intermediate**, **C1 · Advanced** or **C2 · Proficient**. Optional. |
| **Preferred** | Turn on this switch for a language that the person prefers. You can turn it on for more than one language. |

You can add each language one time only.

Under **Qualifications**, select **Add qualification** for each degree of the person.

| Components | What it captures |
| - | - |
| **Degree** | The degree. The list shows the degrees that your deployment allows. By default, these are MBBS, MD, MS, BDS and B.Sc. Nursing. Required in each row. |
| **Issuing authority** | The authority that issued the degree or the registration. Optional. |
| **Registration number** | The registration number of the person. Optional. |

Note: If your deployment has no degrees, or Care cannot load them, you cannot select **Add qualification**.

![Step 7, Add languages and qualifications: the Care screen, with the control for this step outlined](/assets/images/create-user-5-f3beeffc35bfce5ccf7c5f96bcf2723f.webp)

### 8. Create the user

Select **Create User**. For a service account, select **Create Service Account**.

Care shows **User added successfully**, or **Service account created successfully** for a service account.

If you selected **Send email invitation**, Care emails the person a link to set a password. The subject of the email is "Set Up Your Password for Care". By default, the link is valid for 24 hours.

Note: If Care cannot send the invitation email, it does not create the user.

If the username, the email or the phone number is already in use, Care shows a message and does not create the user.

To close the form without saving, select **Cancel**.

![Step 8, Create the user: the Care screen, with the control for this step outlined](/assets/images/create-user-6-fedbff9eb2bad4fcc13ec1a6c28dde6a.webp)

### 9. Link the user

The next step depends on where you opened **Add User**.

* In a government organization, Care opens **Link User to Organization** with the new user selected. Select a role in **Select Role**. Then select **Link to Organization**.
* In a responsibility, Care skips this step if a row under **Role in this organization** has this responsibility. If not, Care opens **Link User to Organization**.
* In a department, Care opens the form that adds a user to the department, with the new user selected. Select a role. Then select **Add to Organization**.

For the details of this step, see [Assign a role to a user](https://docs.ohc.network/flows/access-governance/access-control/assign-role-to-user.md) and [Add users to a department](https://docs.ohc.network/flows/facility/department/add-users-to-department.md).

![Step 9, Link the user: the Care screen, with the control for this step outlined](/assets/images/create-user-8-d678200110ebe16b386c9fb83c602859.webp)

## Expected Outcome

* Care creates the account and shows **User added successfully**.
* Care links the new user to each responsibility under **Role in this organization**, with the designation that you selected.
* If you selected **Set password now**, the person can sign in at once with that password.
* If you selected **Send email invitation**, the person gets an email with a link to set a password.
* If you completed the link step, the new user has a role in the organization or the department.

## Related

Concepts:

* [User](https://docs.ohc.network/concepts/access-governance/user.md)
* [Responsibility](https://docs.ohc.network/concepts/access-governance/responsibility.md)
* [Organization](https://docs.ohc.network/concepts/access-governance/organization.md)
* [Facility organization](https://docs.ohc.network/concepts/access-governance/facility-organization.md)
* [Roles and permissions](https://docs.ohc.network/concepts/access-governance/access-control.md)

Flows:

* [Edit your profile](https://docs.ohc.network/flows/access-governance/user/edit-user-profile.md)
* [Search for a user](https://docs.ohc.network/flows/access-governance/user/search-for-user.md)
* [Assign a role to a user](https://docs.ohc.network/flows/access-governance/access-control/assign-role-to-user.md)
* [Add or manage users in a responsibility](https://docs.ohc.network/flows/access-governance/responsibility/manage-responsibility-users.md)
* [Add users to a department](https://docs.ohc.network/flows/facility/department/add-users-to-department.md)
