Troubleshoot Microsoft 365 DLP Policies Not Detecting Sensitive Data
Question details
Determine why Microsoft 365 DLP policies inconsistently detect keywords and sensitive information in Exchange messages and OneDrive documents.

- Product
- Microsoft 365 Data Loss Prevention
- Device & OS
- not provided
- Scenario
- An administrator is testing DLP rules against messages containing terms such as SSN and a shared OneDrive document containing a test Social Security number.
- Observed behavior
- Some test messages do not generate reports consistently, and a OneDrive document containing a test Social Security number does not generate a report.
Confirm that you have permission to view and edit DLP policies and reports in Microsoft Purview. Identify the affected policy, test account, message or document, and approximate test time before making changes.
Check DLP policy scope, mode, and rule conditions
Use this approach first to isolate whether policy settings or rule changes are preventing detection.
In the Microsoft Purview portal, open Data Loss Prevention > Policies and select the policy. Edit its locations and confirm that Exchange email and OneDrive accounts include the test users and are not excluded.
On the policy details page, check whether the policy is enabled or in test mode. Review the test-mode settings and rule actions; test results and notifications depend on how the policy is configured.
Edit the rule and review its conditions, exceptions, keyword lists, and any minimum instance counts. Check whether multiple conditions must all be met and whether an exception excludes the test content.
Create or edit a test rule with one condition, such as a single keyword, and send a new test message or upload a new test document to an included account. Add other terms and conditions one at a time to identify which change affects the result.
After saving the policy, allow time for the change to propagate and content to be processed before retesting. Compare results using the same test account and location.

Test the built-in U.S. Social Security Number sensitive information type
Use this method when the policy needs to detect Social Security numbers rather than only terms such as SSN.
Review DLP alerts and activity after testing
Use DLP reports and activity details to distinguish a detection issue from an alert configuration or reporting delay.
Edit Office Documents with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for straightforward document migration. Microsoft Purview is still required to configure and troubleshoot Microsoft 365 DLP policies.

Frequently Asked Questions
Why does a test Social Security number not trigger my DLP rule?
The U.S. Social Security Number sensitive information type may require a valid pattern, supporting evidence, and a specified confidence level or instance count. Check the rule condition in Microsoft Purview and compare the sample with Microsoft's current match criteria.
Does test mode generate the same alerts as an enabled policy?
Not necessarily. Open the policy in Microsoft Purview and review its test-mode settings and rule actions. The results and notifications available depend on how the policy is configured.
Where can I see whether a DLP rule matched my test?
In Microsoft Purview, check DLP alerts or Activity explorer, depending on your permissions and available views. Filter by the test user, location, and time, and allow time for processing and reporting.
Why did detection change after I added more keywords?
Review the edited rule's keyword condition, scope, exceptions, and how it combines with other conditions. Test one keyword and one condition at a time to identify the change associated with the different result.
Can WPS Office fix a Microsoft 365 DLP policy?
No. Configure and troubleshoot Microsoft 365 DLP in Microsoft Purview. WPS Office can edit compatible Office documents but does not replace Purview policy administration.




