logo
search
Data Protection Issues

How to Troubleshoot Microsoft Purview DLP Policies for OneDrive and SharePoint

Huma Ashraf ChHuma Ashraf Ch Oct 10, 2026 870 views

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.

How to Troubleshoot Microsoft Purview DLP Policies for 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.
Before you start

Ensure you have Compliance Administrator or Global Administrator privileges in Microsoft 365, and gather your DLP activity logs before investigating the policy processing.

Solution 1Recommended

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.

1
Access Activity Explorer

Log in to the Microsoft Purview compliance portal, navigate to Data loss prevention, and click on Activity explorer to view recent policy evaluations.

2
Filter by Location

Apply filters for 'SharePoint' and 'OneDrive' to see if any activities are being recorded for the specific locations where the policy is failing.

3
Review Policy Conditions

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.

Investigate DLP Activity Logs and Audit Records
PowerShell Limitations: Be aware that the Test-DlpPolicies PowerShell command may not be available depending on your current module version or tenant configuration.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the installer and follow the quick on-screen instructions to set up the software in minutes.
  3. 3. Open Your Office Files: Launch WPS Office and directly open your existing Microsoft Office files with perfect formatting and compatibility.
Completely free and lightweight office suite for daily document tasksFully compatible with Microsoft Word, Excel, and PowerPoint formatsSeamless migration with a familiar, easy-to-use tabbed interfaceBuilt-in PDF editing tools for secure and local document management
microsoft office alternative - wps office

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.