# Managing the Organization Tree

{% hint style="info" %}
Admin Tools -> **Directory**

Using the **Directory** tool requires the **Directory Admin** role.
{% endhint %}

## Creating Organizational Units

* Open the Directory tool.
* To create a new root unit, click on the organization name.&#x20;
* To create a new sub-unit, click on the parent unit where you want to create the new unit.
* Click the Add (:heavy\_plus\_sign:) button next to the selected organization or unit to open the New Unit dialog.
* Enter the new unit's name in the dialog window.
* Click Save.

{% hint style="info" %}
Unit names must be unique within their parent unit or organization.&#x20;
{% endhint %}

<div align="left"><figure><img src="/files/19aFvOVf2XAF8B8mMKBJ" alt="" width="563"><figcaption><p>Creating a Unit</p></figcaption></figure></div>

## Defining Unit Contacts

For each unit, you can designate certain users as “Unit Contacts.” Typically, these are branch managers, administrators, or other users who need to receive notifications related to the unit’s activities.

<div align="left"><figure><img src="/files/Kph6Q4vGQXgXpXfJcFcb" alt="" width="563"><figcaption><p>Unit Contacts</p></figcaption></figure></div>

## Archiving and Restoring Units&#x20;

If you no longer need to use a unit, you can archive it.

To archive a unit, click the Archive Unit menu option on the unit's context menu.

<div align="left"><figure><img src="/files/fwEuwzaikpvmaHKJYamw" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
You cannot archive a unit if it has child units or if routes in other units reference inboxes in the unit you are trying to archive.
{% endhint %}

If you want to use the unit again, you can **restore** it. To restore a unit, you need to select the unit's parent unit (or organization in case of a root unit) and click the Restore Archived Units menu option in the context menu to open the Archived Units dialog:

<div align="left"><figure><img src="/files/WJ5C32TSpx5HwYd7vW5A" alt="" width="563"><figcaption><p>Archived Units Dialog</p></figcaption></figure></div>

Select the unit you wish to restore and click the Restore option.

## Copying a Unit

You can copy a single unit or an entire sub-tree to another location in your organization tree. Cubu will copy the unit with all of its child entities (i.e., inboxes, services, routes, portals, etc.).

Top copy a unit, click the Copy Unit option in the unit's context menu to open the Copy Unit dialog:

<div align="left"><figure><img src="/files/EQi4bYhXEGs2j1gIYktQ" alt="" width="563"><figcaption><p>Copy Unit Dialog</p></figcaption></figure></div>

* **Target Location:** Select where to create the new unit. You can choose the organization (to create a new root unit) or another unit. The new unit will be created as a child of the selected target.\
  Note that you **cannot** copy a unit into one of its descendant units.
* **New Unit Name:** The name of the new unit to create. Note that unit names must be unique within their parent.
* **Time Zone:** The time zone of the new unit. Select "Inherit From Parent" to use the target's time zone. When you copy a sub-tree, all units in the new sub-tree inherit the top unit's time zone.
* **Copy Descendant Units:** Check this box to copy the chosen unit and its hierarchical structure.
* **Activate Daily Plans and Create Calendars:** Check this box if you want to create calendars for scheduled templates once the unit is created if **auto daily plan activation** is enabled for the original service. \
  Note that daily plan templates are copied **without** their user allocation.


---

# 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://docs.cubu.com/guides/admin-tools/organization-tree/managing-the-organization-tree.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.
