> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/en/features/mapping/repositories/subject-categories.md).

# Categories of data subjects

Maintain the categories of data subjects, flag vulnerable persons, and see or import the datasets linked to each category.

A category of data subjects groups people whose data you process: employees, customers, candidates, minors, and so on. In the menu, the repository is called **Cat. of data subject**.

Create each category once here, then select it in your datasets, processing activities, data breaches and requests, so that your reports count the same populations everywhere.

## Add a category

Open **Data inventory** > **Repositories** > **Cat. of data subject**. You can:

* click **Create a new categorie of data subjects** to open an empty form;
* click the arrow next to that button, then **Create from library...** to copy categories of the library;
* import categories from a file: arrow next to the button, then **Import**. See [Import your data (Excel, Csv)](https://doc.dastra.eu/en/features/general/import.md).

<figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2Fgit-blob-c73fa888dc18f96cc56c91eaad0153e8d57fa805%2Frepositories-subject-categories-1.png?alt=media" alt="List of categories of data subjects with the Datasets column displayed"><figcaption><p>The list of categories, with the Datasets column</p></figcaption></figure>

## Complete the category form

| Field                                   | Content                                                                                                          |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| **Categorie of data subjects**          | The name of the category, required.                                                                              |
| **Summary**                             | A free description.                                                                                              |
| **Vulnerable natural persons involved** | Tick it when the category groups people in an unbalanced situation, such as minors, employees or elderly people. |

The toolbar of the form gives access to the tasks and AI systems linked to the category, depending on your permissions and the enabled features. It also contains the processing activities that use the category, the datasets of the category (see below), the activity history and, when workflow steps are defined, the workflow step.

The actions menu of the form offers **Merge** and **Delete**. There is no **Data quality tool** for categories.

## Datasets of a category

A dataset can relate to several categories, and a category to several datasets. This link helps you find, for a given population, which data you hold, for example when you handle a [data subject request](https://doc.dastra.eu/en/features/requests.md).

* To see the datasets of a category, open its form: the button with the number of datasets lists them. Click a dataset to open it. In the list of categories, turn on the **Datasets** column in **Customize columns**: you can also filter the list by dataset.
* To link or unlink a dataset, open the dataset, then add or remove the category in its **Related subject categories** field. See [Datasets](https://doc.dastra.eu/en/features/mapping/repositories/datasets.md). The list of datasets can also be filtered by **Cat. of data subject**.
* To import the links, use the **Datasets** column of the import file of the categories. It holds the names or identifiers of datasets, separated by a pipe (`|`). Only the datasets that already exist in the workspace are linked: Dastra does not create the others.
* To export the links, the **Datasets** column is included in the export of the list.

## Find categories in the list

From a selection, you can **Switch workflow stage**, **Merge** and **Delete**.

## Where categories are used

* In a processing activity, the **Data subject** section lists the categories concerned, with their volume. See [Data subjects](https://doc.dastra.eu/en/features/ropa/activity/data-subjects.md).
* In datasets, through **Related subject categories**. See [Datasets](https://doc.dastra.eu/en/features/mapping/repositories/datasets.md).

{% hint style="warning" %}
Deleting a category removes all its references in processing activities, data breaches, requests to exercise rights and datasets.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.dastra.eu/en/features/mapping/repositories/subject-categories.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
