# Create a department or team

## Overview

[Video: Create a department or team](https://www.youtube.com/watch?v=xCh6fSTAIVg)

This flow describes how to create a [department](https://docs.ohc.network/concepts/facility/department.md) or a team in a facility. You create it at the top level of the facility, or inside another department as a sub-department.

## Pre-requisites

* You have a role in a department of the facility, or in its root department, "Administration". The facility then shows on the **Facilities** tab of your dashboard.
* If you create a sub-department, the parent department already exists in the facility. The parent is not "Administration".
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can View Facility Organizations | Shows the departments of the facility, so that you can open the parent department. Hold it in any department of the facility, or in "Administration". Without it, Care shows no departments. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse and Volunteer roles hold it. |
| Can Create Facility Organizations | Shows **Add Department/Team** and lets you create the department. For a top-level department, hold it in any department of the facility, or in "Administration". For a sub-department, hold it in the parent department, a department above it, or "Administration". By default, only the Facility Admin role holds it. |

## Steps

### 1. Open the Departments page

On your dashboard, select the **Facilities** tab. Then select the facility.

In the facility sidebar, select **Settings**. Then select **Departments** in the settings sidebar.

Care opens the **Departments/Teams** page. It shows a tree of the departments and a list of the top-level departments.

![The Care screen at the step: Open the Departments page](/assets/images/create-department-1-4c7b9dd5ee498f9dd44f4994d1d90789.webp)

### 2. Choose where to create the department

* To create a top-level department, stay on the **Departments/Teams** page.
* To create a sub-department, select the row of the parent department in the list. Care opens the **Departments/Teams** tab of that department.
* To go further down the tree, select the row of the next department.
* On a narrow screen, each department shows as a card. Select **See Details** to open it.
* To filter the departments at this level by name, type in **Search by department/team name**.

A top-level department sits beside "Administration", not under it.

Note: You cannot create a department inside "Administration".

![The Care screen at the step: Choose where to create the department](/assets/images/create-department-2-5141f55cb134b3e49a5e65a1ade4e61b.webp)

### 3. Open the form

Select **Add Department/Team**. Care opens the **Create Department/Team** form.

If you do not see **Add Department/Team**, your roles in the facility do not have "Can Create Facility Organizations".

![The Care screen at the step: Open the form](/assets/images/create-department-3-2a87a868ff8f3baa5f7e16468d0b4c32.webp)

### 4. Enter the details

| Components | What it captures |
| - | - |
| **Name** | The name of the department or team. Required. |
| **Type** | Select **Department** or **Team**. The default is **Department**. |
| **Description** | A short description of the department. Optional. |

If you leave **Name** empty, or enter only spaces, Care shows **This field is required**.

Note: Care does not accept a name that another department at the same level of the facility already has.

![The Care screen at the step: Enter the details](/assets/images/create-department-4-d79a33ec96e7414b4da8fb5b661f3925.webp)

### 5. Create the department

Select **Create Organization**. You can select it only when the form is valid.

Care shows **Organization created successfully**.

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

If Care refuses to create the department, it shows one of these messages:

| Message | What to do |
| - | - |
| "Organization already exists with same name" | Another department at the same level has this name. Enter a different name. |
| "Max depth reached (10)" | The parent department is at the depth limit of your deployment. The number in the message is that limit. By default, it is 10. Create the department at a higher level. |
| "Max location reached for facility (1000)" | The facility has the largest number of departments that your deployment allows. The number in the message is that limit. By default, it is 1000. |
| "Cannot create organizations under root organization" | You are inside "Administration". Go back to the **Departments/Teams** page and create the department at the top level. |
| "User does not have the required permissions to create organizations" | Your roles do not have "Can Create Facility Organizations" in the parent, a department above it, or "Administration". Create the department at the top level, or in a department where you have this permission. |

![The Care screen at the step: Create the department](/assets/images/create-department-5-fb03a7d8e28012c5ff78a61681291301.webp)

## Expected Outcome

* Care creates the department or team and shows **Organization created successfully**.
* A top-level department shows in the list on the **Departments/Teams** page.
* A sub-department shows on the **Departments/Teams** tab of its parent department.
* To add people to the new department, see [Add users to a department](https://docs.ohc.network/flows/facility/department/add-users-to-department.md).

## Related

Concepts:

* [Department](https://docs.ohc.network/concepts/facility/department.md)
* [Facility organization](https://docs.ohc.network/concepts/access-governance/facility-organization.md)

Flows:

* [Edit a department or team](https://docs.ohc.network/flows/facility/department/update-department.md)
* [Delete a department or team](https://docs.ohc.network/flows/facility/department/delete-department.md)
* [Add users to a department](https://docs.ohc.network/flows/facility/department/add-users-to-department.md)
* [Create a service account](https://docs.ohc.network/flows/access-governance/service-account/create-service-account.md)
