# Add users to a department

## Overview

[Video: Add users to a department](https://www.youtube.com/watch?v=G6cli6zN4-Y)

This flow describes how to manage the members of a [department](https://docs.ohc.network/concepts/facility/department.md) in Care. You can add a user, change a member's role, and remove a member.

## Pre-requisites

* The department is set up in the facility.
* The user has an account in Care. If the user has no account, you can create the account during this flow.
* The user is not yet a member of the department, of a department above it, or of a department below it. Otherwise, Care refuses the link.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can List Users in a Facility Organizations | Lets you view the members of a department. By default, the Facility Admin, Administrator, Staff, Doctor and Nurse roles hold this permission. |
| Can Manage Users in a Facility Organization | Lets you add a member, change a member's role, or remove a member. By default, the Facility Admin and Administrator roles hold this permission. |
| Can create User in care | Shows **Add User**, which creates an account for a person who has no account in Care. Hold it in the facility. By default, the Facility Admin and Administrator roles hold this permission. |

Note: You can add, change or remove a member only when the member's role carries no permission beyond the combined permissions of your own roles in that department, its parent departments and the facility's Administration department. Otherwise, Care blocks the attempt. When you change a role, Care checks both the current role and the new role.

## Steps

### 1. Open the Users tab of the department

Open the facility. Select Settings. Select Departments. Open the department. Select the Users tab.

![The Users tab of the Physiotherapy department, with No Users Found and the Add User and Link User buttons](/assets/images/add-users-to-department-1-0b491438fc7a031e1cfaf7ddced7a73e.webp)

### 2. Add a user to the department

Select Link User. Search for the user. Select the user. Under Select Role, select a role. Select Add to Organization.

Note: To link a service account, select the Service accounts tab. Then select Link Service Account.

Note: If the user has no account in Care, select Add User. Complete the user form. Care then opens the Link User form with the new user selected.

![The Link User to Facility sheet, with a staff member selected as the user, Staff under Select Role and the Add to Organization button](/assets/images/add-users-to-department-2-68b301342d53205e54c963d47fb07740.webp)

### 3. Change a member's role

Find the member in the list. Select Edit next to the member's role. Care opens the Edit User Role sheet. Under Select New Role, select the new role. Select Update Role.

Note: You must select a role different from the member's current role.

Note: Care blocks a role change that removes the last Facility Admin from the facility's root department.

![The Select New Role field in the Edit User Role sheet, set to Nurse for a member whose current role is Staff, above Remove User and Update Role](/assets/images/add-users-to-department-3-cc8911eadaeb185528ca5c511b1229a0.webp)

### 4. Remove a member

Find the member in the list. Select Edit next to the member's role. In the sheet that opens, select Remove User. Select Remove to confirm.

Note: Care blocks the removal of the last member of the facility's root department.

![The Remove User From Organization dialog, asking to confirm the removal of the member and warning that it cannot be undone, with Cancel and Remove](/assets/images/add-users-to-department-4-4979703cb909271f5e1ee46958fff219.webp)

## Expected Outcome

* Care shows the new member in the Users tab of the department, with the role of the member.
* Care shows a success message when you add a member, change a member's role, or remove a member.
* Care removes the member from the list when you remove the member.

## Related

Concepts:

* [Department](https://docs.ohc.network/concepts/facility/department.md)

Flows:

* [Create a department](https://docs.ohc.network/flows/facility/department/create-department.md)
* [Update a department](https://docs.ohc.network/flows/facility/department/update-department.md)
