> For the complete documentation index, see [llms.txt](https://docs.cipp.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cipp.app/user-documentation/cipp/custom-data/directory-extensions/add.md).

# Add Directory Extension

Create a custom directory extension. Once saved, the extension is registered against the CIPP application registration and becomes selectable as a destination when you create a mapping.

## Directory Extension Details

| Field           | Description                                                                                                                                                                                         |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Extension Name  | A unique name for the extension. Microsoft Graph prefixes this with `extension_<applicationId>_` when the extension is created, so the stored property name is longer than the name you enter here. |
| Data Type       | The type of value the extension stores. Choose from Binary (256 bytes maximum), Boolean, DateTime (ISO 8601, UTC), Integer (32-bit), LargeInteger (64-bit), or String (256 characters maximum).     |
| Is Multi-Valued | Stores a collection of values rather than a single value. Required if you intend to map an array dataset such as Mailbox Permissions.                                                               |
| Target Objects  | The directory object types the extension can be set on. Choose one or more of User, Group, Administrative Unit, Application, Device, or Organization. At least one is required.                     |

{% hint style="info" %}
The data type and the multi-valued setting cannot be changed after creation. If you get either wrong, you will need to delete the extension and create a replacement, which means losing any values already written.
{% endhint %}

{% hint style="warning" %}
Only select the target objects you genuinely need. Directory objects are limited to 100 extension values per instance across all extensions.
{% endhint %}

***

## Feature Requests / Ideas

We value your feedback and ideas. Please raise any [feature requests](https://github.com/CyberDrain/CIPP/issues/new?template=feature.yml) on GitHub.


---

# 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://docs.cipp.app/user-documentation/cipp/custom-data/directory-extensions/add.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.
