Data loss prevention policies should be switched on in Microsoft 365
This check looks at whether your tenant has at least one Microsoft Purview data loss prevention (DLP) policy that is turned on and covers your core Microsoft 365 locations. The safe setting is an active policy, not one that is switched off or only drafted.
Why it matters
People share files and emails every day, and some of them contain customer records, payment details or other sensitive content. A DLP policy lets Microsoft Purview recognise that content and warn the user, block the action, or record it. Without an active policy, nobody is warned and nothing is recorded when a sensitive file leaves through email, SharePoint or OneDrive.
Microsoft describes DLP as applying to locations such as Exchange email, SharePoint sites, OneDrive accounts and Teams chat and channel messages, and notes that monitored activities are written to the Microsoft 365 audit log. A policy that exists but is switched off gives you none of that. See Learn about data loss prevention on Microsoft Learn.
How to check it yourself
In the Microsoft Purview portal, open Solutions, then Data loss prevention, then Policies. Look at the Status column: you want at least one policy showing On that includes Exchange, SharePoint and OneDrive. A status of Off or a simulation state means the policy is not enforcing.
The same view from PowerShell is read-only. Connect to Security & Compliance PowerShell and list the policies:
Connect-IPPSSession
Get-DlpCompliancePolicy | Select-Object Name, Mode, Enabled, ExchangeLocation, SharePointLocation, OneDriveLocationRun it with an account that has read access to compliance settings. The command only lists policies and changes nothing.
How to fix it
ConfigCobra only reads your tenant, so the fix is made by you or your admin. In the Purview portal go to Data loss prevention, then Policies, and select Create policy. Start from a predefined template or a custom policy, choose the locations (Exchange email, SharePoint sites, OneDrive accounts), pick the conditions and the action to take, and finish the wizard.
Microsoft recommends first running a new policy in simulation mode, where actions are not applied, reviewing the matches, tuning it, and only then turning it on. If a suitable policy already exists but is not enforcing, you can enable it with PowerShell after you have reviewed it:
Set-DlpCompliancePolicy -Identity "<policy name>" -Mode EnableMicrosoft notes that policies generally take effect about an hour after being turned on.
What changes when you fix it
Users who handle sensitive content may now see policy tips, be blocked from a sharing action, or be asked to give a business reason, depending on the actions you chose. Helpdesk may get questions in the first weeks, especially from teams that send data outside the company routinely, such as finance or HR. Compliance staff gain alerts and activity records to review.
Simulation mode is the safe way to learn who would be affected before anyone is blocked. Nothing changes for mailboxes, sites or files that do not match a rule.
Included in
| Benchmark | CIS ID | Profile |
|---|---|---|
| CIS Microsoft 365 Foundations v7.0.0 | 3.2.1 | E3 Level 1 |
More checks in Microsoft Purview
Go further
- Microsoft Purview5 controls in this section
- CIS Microsoft 365 Foundations v7.0.0160 controls
- CIS Microsoft 365 Foundations checklistEvery control in one list, as CSV
- RemediationSee what a fix changes in your tenant before you apply it, then use the generated script
- Monitoring & DriftScheduled scans, drift detection and email alerts when a control regresses
Check this on your Microsoft 365
ConfigCobra runs this check with every other control of the CIS Microsoft 365 Foundations Benchmark, read-only.