> 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/security/compliance/dlp-templates.md). Agents can also search and read this documentation through its [MCP server](https://docs.cipp.app/~gitbook/mcp).

# DLP Policy Templates

DLP policy templates are saved DLP configurations held in CIPP rather than in a tenant, so a policy you have settled on can be deployed to any number of customers without rebuilding it each time. The exception is a policy whose rules use sensitivity labels as conditions, which needs editing for each tenant (see [Sensitivity label conditions](#sensitivity-label-conditions)). Templates get here in three ways: capture one from a live policy with **Create template based on policy** on the DLP Policies page, author one from JSON in the deploy drawer, or import one from a community repository.

## Action Buttons

<details>

<summary>Deploy DLP Policy</summary>

Opens a drawer that creates a DLP policy in one or more tenants from a template or from parameters you supply yourself.

| Field                        | Description                                                                                                                                                                                                                         |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Select Tenants               | The tenants to create the policy in. At least one is required, and you can pick several to deploy the same policy across a group of customers in one go.                                                                            |
| Select a template (optional) | Picks a saved DLP policy template. Choosing one fills **Parameters (JSON)** with that template's stored settings, which you can then edit before deploying.                                                                         |
| Parameters (JSON)            | The policy settings as JSON. Required. A worked example is shown in the field until you type into it, covering the policy name, mode, workload locations and a nested `RuleParams` block for the rule created alongside the policy. |

</details>

<details>

<summary>Browse Catalog</summary>

Opens a drawer listing the DLP policy templates published in the community repositories you have configured, so you can bring one into CIPP.

| Field                                | Description                                                                                                      |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
| Search Templates                     | Narrows the list by template name, category or repository.                                                       |
| Repository                           | Restricts the list to chosen repositories. Shown once you have more than one repository configured.              |
| Category                             | Restricts the list to chosen categories. Shown once the available templates span more than one category.         |
| Card and list view                   | Switches between template cards and a compact list.                                                              |
| All, Not Imported, Imported, Updates | Filters by import state. **Updates** narrows to templates you already imported that have since changed upstream. |
| Select all                           | Selects every template currently listed, for importing in one go.                                                |
| Force re-import                      | Imports a template again even when CIPP already holds it, overwriting the copy you have.                         |
| Import Selected                      | Imports everything you have ticked.                                                                              |

Each template also carries its own **Preview** and **Import** buttons, and is chipped **Imported** or **Update Available** so you can see its state at a glance.

{% hint style="info" %}
Be sure to check out [Catalog](https://docs.cipp.app/user-documentation/tools/community-repos.md) for more on setting up repositories.
{% endhint %}

</details>

## Sensitivity Label Conditions

DLP rules refer to sensitivity labels by GUID, and each tenant's labels have their own GUIDs, even where the label names match. CIPP saves and deploys a template's rule conditions exactly as they were captured, so a rule that uses a sensitivity label as a condition still points at the label in the tenant the template came from. The same applies when the template is deployed through the DLP Compliance Policy Template standard.

To deploy a template like this to another tenant:

1. Open **Deploy DLP Policy**, select one destination tenant, and pick the template.
2. On [Sensitivity Labels](https://docs.cipp.app/user-documentation/security/compliance/labels.md), select that tenant and open **More Info** on each label the rule uses. The **Guid** field holds the label's GUID in that tenant.
3. In **Parameters (JSON)**, replace each source-tenant label GUID with the matching GUID from step 2, then deploy.

Repeat for each tenant, because the GUIDs differ every time. For the same reason, a template with label conditions is not suited to deploying across several tenants in one go or through a standard.

## Table Details

| Column   | Description                                                                                                 |
| -------- | ----------------------------------------------------------------------------------------------------------- |
| Name     | The template name, taken from the policy it was captured from or the name in the JSON it was authored with. |
| Comments | The description saved with the template.                                                                    |
| Mode     | The enforcement mode the policy will be created in.                                                         |
| Workload | The Microsoft 365 workloads the policy will cover.                                                          |
| Enabled  | Whether the policy will be created switched on.                                                             |
| GUID     | CIPP's identifier for the template. Quote it when raising a support request about a specific template.      |

{% hint style="info" %}
A DLP policy that is pending deletion cannot be saved as a template, because the snapshot would not be deployable. Capturing one is rejected with an explanatory message rather than storing a broken template.
{% endhint %}

## Table Actions

<table><thead><tr><th>Action</th><th>Description</th><th data-type="checkbox">Bulk Action Available</th></tr></thead><tbody><tr><td>Save to GitHub</td><td>Publishes the selected template to a repository you have write access to, prompting for the repository and a commit message. Greyed out unless the GitHub integration is enabled.</td><td>true</td></tr><tr><td>Delete Template</td><td>Removes the selected template from CIPP. Policies already deployed from it are unaffected.</td><td>true</td></tr><tr><td>More Info</td><td>Opens the Extended Info flyout with the full details for the selected row.</td><td>false</td></tr></tbody></table>

***

## 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/security/compliance/dlp-templates.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.
