# Create and set up organizational units

{% embed url="<https://www.youtube.com/watch?v=QyEliXjoMJ0>" %}

## Introduction

Organizational units allow you to structure your workspace. Two types of organizational units can be created:

* **entities**, which correspond to legal entities and represent a data controller,
* **departments**, which are used to organize entities.

In Dastra, the notion of workspace is decoupled from that of legal entity. A **workspace can therefore refer to several distinct legal entities** (as in a group, for example). On the other hand, there can only be one legal representative per legal entity.

{% hint style="info" %}
Each entity in Dastra is considered a data controller.
{% endhint %}

## Access the "Organizational units" module in Dastra

Go to "Settings" on the left of the screen, then click on "Organizational units".

<figure><img src="/files/OgrUvsTTzVn9Dp8GLBlk" alt="" width="270"><figcaption><p>Button to access workspace settings</p></figcaption></figure>

<figure><img src="/files/qfKvdcAGWroVoKvzHPqy" alt="" width="172"><figcaption><p>Access to organizational unit parameters</p></figcaption></figure>

This takes you to the screen for **creating and setting up** organizational units:

<figure><img src="/files/odBJHl4fqsUsVEODXA9J" alt=""><figcaption><p>Organizational unit management interface</p></figcaption></figure>

## Create or modify an entity

To create a legal entity, simply click on the "Create an entity (data controller)" button in the "Entities and departments" module.

<figure><img src="/files/81S1zea48SsKCe4Q2Jsl" alt="" width="278"><figcaption><p>Create an entity" button</p></figcaption></figure>

Fill in the required fields: name and country are mandatory. You can fill in the name of the person in charge (the legal representative), as well as the data protection officer (if applicable) and the representative within the EU (if applicable).

{% hint style="info" %}
Unlike departments, the number of entities (data processors) that can be entered into Dastra is limited by a quota that depends on your subscription. If you wish to increase this quota, please [contact our sales department](https://www.dastra.eu/en/contacts).
{% endhint %}

To modify an entity, click on the 3 dots to the right of the entity concerned, then on "Modify".

<figure><img src="/files/KE0SvMHsGlw8ap0lTlU3" alt=""><figcaption><p>Drop-down menu linked to an entity</p></figcaption></figure>

Make the desired changes and click "Save".

## Create or modify a department

To create a department, simply click on the "Create a department" button in the "Organizational units" module and fill in the required fields.

<figure><img src="/files/AImDD8PTC5pmWZOO0vI1" alt="" width="563"><figcaption></figcaption></figure>

To modify a department, simply click on the 3 dots to the right of the department you wish to modify, click on "Modify" and fill in the required fields, before clicking on "Save".

<figure><img src="/files/tmxtGzWKUwEMtoxb7w4G" alt="" width="563"><figcaption><p>Department drop-down menu</p></figcaption></figure>

## Import organizational units

You can import a list of organizational units via an import file. This file can be downloaded by clicking on the "Import" button in the organizational unit management interface.

<figure><img src="/files/RqYrKPlYyEaS4JihKmgF" alt="" width="563"><figcaption></figcaption></figure>

Then click on "Download template file".

<figure><img src="/files/XyQe60UgDpxnifCyKc7v" alt=""><figcaption></figcaption></figure>

After filling in the file, drop it in the drop box and follow the instructions.

## View and configure entities and departments from the organizational chart

In Dastra, you can also view entities and departments graphically, and set their parameters directly from the organization chart.

To do this, click on the "Organization chart" view in the "Entities and departments" module.

<figure><img src="/files/MDPJp9t2EZQ1Hbsafea8" alt="" width="279"><figcaption></figcaption></figure>

In this way, you can visualize your group's organizational chart graphically:

<figure><img src="/files/3BuDk6Ec9TNqZRuoypHS" alt=""><figcaption><p>Example of an organization chart in Dastra</p></figcaption></figure>

{% hint style="info" %}
In the "Organization chart" view, you can perform most of the operations available in the "Entities / Departments" view.
{% endhint %}

## Restrict access to an organizational unit's content

You can use the user team system to restrict access to content attached to an organizational unit.

To do this, you need to attach teams to organizational units.

The system is tree-based. This means that, for a team to access a child UO, it must access the parent UO.

Here is an explanatory video (in french):

{% embed url="<https://www.youtube.com/watch?v=AQdTo_4wSZk>" %}

## For more information

{% content-ref url="/pages/K2payr8yY4dmFV4G8nR2" %}
[Create and assign teams](/en/commencer/commencer/create-and-assign-teams.md)
{% endcontent-ref %}


---

# 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://doc.dastra.eu/en/commencer/commencer/creer-et-parametrer-des-entites-et-departements.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.
