6. Data loss prevention controls configuration
Published 10 November 2026
This guidance is part of a series for UK government departments on how to set up Microsoft Information Protection to align with the requirements of the Government Security Classification Policy (GSCP). This section explains how to configure data loss prevention controls.
6.1. Summary
This guidance details the Data Loss Prevention (DLP) controls used to protect 2 types of information: HMG USE ONLY and [ORG] USE ONLY. It provides detail of how Purview DLP policies are configured to prevent external oversharing across Exchange, SharePoint and OneDrive, including the conditions, actions, user notifications, incident reporting and policy modes used to reduce the risk of data loss.
Note: In this configuration, the HMG Use Only policy permits anyone with a @.gov.uk email address access to the information. If there is a requirement to include additional email addresses/domains outside of gov.uk, they can be added in the “Recipient address matches patterns” section of the configuration.
6.2. Data Loss Prevention Configuration
The below guidance provides the configuration for Data Loss Prevention (DLP) controls assigned to the HMG USE ONLY and ORG USE ONLY labels. All policies are created as ‘Enterprise applications and devices’ policies.
Portal: Purview Admin Centre – Data Loss Prevention - Policies
| DLP rule item and Configuration | Action |
|---|---|
| Template - Choose a template | Custom policy |
| Name | Block external sharing for [INSERT ORG] USE ONLY policy |
| Description | Blocks email from being sent externally when the [INSERT ORG] USE ONLY label is applied |
| Policy scope | SharePoint sites OneDrive accounts |
| Advanced DLP rules | Create rule |
| Name | Block external sharing for [INSERT ORG] USE ONLY rule |
| Add condition - Content contains | Sensitivity labels OFFICIAL/[SELECT ORG] USE ONLY OFFICIAL-SENSITIVE/[SELECT ORG] USE ONLY |
| Create group | AND |
| Add condition - Content is shared from Microsoft 365 | with people outside my organisation |
| Actions - Restrict access or encrypt the content in Microsoft 365 locations | Block only people outside your organization |
| User notifications | On |
| Email notifications | Ticked |
| Notify the user who sent, shared, or last modified the content | Selected |
| Attach matching email message to the notification: | Ticked |
| Policy tips | Ticked |
| Customise the policy tip text | Ticked: Enter your policy tip text to advise users of oversharing restrictions |
| Incident reports - Use this severity level in admin alerts and reports | High |
| Send an alert to admins when a rule match occurs | On |
| Send email alerts to these people | Send alert every time an activity matches the rule. |
| Use email incident reports to notify you when a policy match occurs | On |
| Send notifications to these people | Choose a shared mailbox for alerting |
| All incident reports include information about the item that was matched, where the match occurred, and the rules and policies it triggered. You can also include the following information in the report: | The name of the person who last modified the content: Ticked The types of sensitive content that matched the rule: Ticked The rule’s severity level: Ticked The content that matched the rule, including the surrounding text: Ticked The item containing the content that matched the rule: Ticked |
| Policy mode | Setting dependent on organisations deployment approach. The policy can be placed in simulation mode to gather metrics and understand impact, or it can be switched on immediately. |
| DLP rule item and Configuration | Action |
|---|---|
| Template - Choose a template | Custom policy |
| Name | Restrict email oversharing for HMG USE ONLY policy |
| Description | Blocks email from being sent outside of HMG |
| Policy scope | Exchange email |
| Advanced DLP rules | Create rule |
| Name | Block email oversharing outside HMG rule |
| Add condition - Content is shared from Microsoft 365 | with people outside my organisation |
| Create group | AND – Toggle NOT |
| Add condition - Content contains | Sensitivity labels OFFICIAL - HMG USE ONLY OFFICIAL-SENSITIVE - HMG USE ONLY |
| Create Group | AND |
| Add condition - Recipient address matches patterns | gov.uk |
| Actions - Restrict access or encrypt the content in Microsoft 365 locations | Block only people outside your organisation |
| User notifications | On |
| Email notifications | Ticked |
| Notify the user who sent, shared, or last modified the content | Selected |
| Attach matching email message to the notification: | Ticked |
| Policy tips | Ticked |
| Customise the policy tip text | Ticked: Enter your policy tip text to advise users of oversharing restrictions |
| Incident reports - Use this severity level in admin alerts and reports | High |
| Send an alert to admins when a rule match occurs | On |
| Send email alerts to these people | Send alert every time an activity matches the rule. |
| Use email incident reports to notify you when a policy match occurs. | On |
| Send notifications to these people | Choose a shared mailbox for alerting |
| All incident reports include information about the item that was matched, where the match occurred, and the rules and policies it triggered. You can also include the following information in the report: | The name of the person who last modified the content: Ticked The types of sensitive content that matched the rule: Ticked The rule’s severity level: Ticked The content that matched the rule, including the surrounding text: Ticked The item containing the content that matched the rule: Ticked |
| Policy mode | Setting dependent on organisations deployment approach. The policy can be placed in simulation mode to gather metrics and understand impact, or it can be switched on immediately. |
| DLP rule item and Configuration | Action |
|---|---|
| Template - Choose a template | Custom policy |
| Name | Restrict file oversharing for HMG USE ONLY policy |
| Description | Blocks files from being overshared outside of HMG |
| Policy scope | SharePoint sites OneDrive accounts |
| Advanced DLP rules | Create rule |
| Name | Block file oversharing outside HMG rule |
| Add condition - Content is shared from Microsoft 365 | with people outside my organisation |
| Create group | AND |
| Add condition - Content contains | Sensitivity labels OFFICIAL - HMG USE ONLY OFFICIAL-SENSITIVE - HMG USE ONLY |
| Actions - Restrict access or encrypt the content in Microsoft 365 locations | Block access to external domains and users Domain: Ticked IS NOT – gov.uk |
| Incident reports - Use this severity level in admin alerts and reports | High |
| Send an alert to admins when a rule match occurs | On |
| Send email alerts to these people | Send alert every time an activity matches the rule. |
| Use email incident reports to notify you when a policy match occurs. | On |
| Send notifications to these people | Choose a shared mailbox for alerting |
| All incident reports include information about the item that was matched, where the match occurred, and the rules and policies it triggered. You can also include the following information in the report: | The name of the person who last modified the content: Ticked The types of sensitive content that matched the rule: Ticked The rule’s severity level: Ticked The content that matched the rule, including the surrounding text: Ticked The item containing the content that matched the rule: Ticked |
| Policy mode | Setting dependent on organisations deployment approach. The policy can be placed in simulation mode to gather metrics and understand impact, or it can be switched on immediately. |
Previous - Label publishing policies guidance.
Next - Automatic labelling guidance.