How to Troubleshoot Microsoft Purview DLP Policies for OneDrive and SharePoint
Question details
The user needs to resolve an issue where a Microsoft Purview Data Loss Prevention (DLP) policy fails to detect specific dictionary terms in OneDrive and SharePoint.

- Product
- Microsoft Purview
- Device & OS
- not provided
- Scenario
- Investigating and resolving data loss prevention policy failures for cloud document storage.
- Observed behavior
- The configured DLP policy works correctly in Teams and Exchange but ignores dictionary terms in OneDrive and SharePoint.
Ensure you have Compliance Administrator or Global Administrator privileges in Microsoft 365, and gather your DLP activity logs before investigating the policy processing.
Investigate DLP Activity Logs and Audit Records
Use the Microsoft Purview compliance portal to track policy matches and identify where the evaluation is failing for SharePoint and OneDrive.
Before escalating the issue, it is crucial to verify if the files in OneDrive and SharePoint are being scanned but not matching the dictionary, or if they are being skipped entirely.
Log in to the Microsoft Purview compliance portal, navigate to Data loss prevention, and click on Activity explorer to view recent policy evaluations.
Apply filters for 'SharePoint' and 'OneDrive' to see if any activities are being recorded for the specific locations where the policy is failing.
Open the specific DLP policy and verify that the advanced rules for SharePoint and OneDrive are correctly mapped to the exact dictionary terms you are testing.

Escalate to the Correct Support Channel
Post your detailed configuration and logs to the appropriate Microsoft 365 community for specialized assistance.
Looking for a Lightweight Document Solution? Try WPS Office
While managing enterprise compliance policies in Microsoft 365 can be complex, handling your daily documents doesn't have to be. WPS Office is a robust, lightweight alternative that lets you edit Word, Excel, and PowerPoint files with ease, without the heavy overhead of enterprise cloud deployments.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the installer and follow the quick on-screen instructions to set up the software in minutes.
- 3. Open Your Office Files: Launch WPS Office and directly open your existing Microsoft Office files with perfect formatting and compatibility.

Frequently Asked Questions
Why does my Purview DLP policy work in Exchange but not in SharePoint or OneDrive?
This discrepancy often occurs because SharePoint and OneDrive rely on search indexing to evaluate content against DLP policies. If a file hasn't been crawled yet, or if the policy conditions are scoped differently for these workloads, the dictionary terms will not trigger an alert.
Can I use Test-DlpPolicies in PowerShell to troubleshoot this?
The Test-DlpPolicies PowerShell cmdlet is frequently deprecated or simply unavailable depending on your Microsoft 365 tenant configuration and the Exchange Online module version you are using. It is better to rely on Activity Explorer logs.
Where should I ask for help with Microsoft Purview DLP issues?
You should post your questions in the Microsoft 365 Q&A forums. Avoid Intune or Group Policy forums, as Purview DLP requires specialized knowledge of Microsoft's compliance architecture.




