Search Microsoft 365 Mailboxes for Credit Card Numbers
Question details
Identify Microsoft 365 mailbox messages that contain payment card information.

- Product
- Microsoft 365 Content Search and Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator uses a SensitiveType query to find credit card numbers in Office 365 mailboxes.
- Observed behavior
- The search returns unrelated messages containing long numeric strings, with results similar to a search without keywords.
Confirm that you have permission to search the target Exchange Online mailboxes and note the query and locations used. Mask card numbers and other personal information before sharing screenshots or examples.
Check the mailbox search and contact Microsoft Support
Use this approach to verify the search scope and investigate the SensitiveType limitation for existing mailbox content.
The SensitiveType search behavior described in this scenario applies to SharePoint and OneDrive for Business content, not Exchange mailbox searches. Do not treat the returned mailbox results as a reliable list of messages containing credit card numbers.
Open your existing search in the Microsoft Purview portal and check its Locations or data sources to confirm that the intended Exchange mailboxes are selected.
Replace the sensitive-data query with a simple query such as from:sender@example.com AND subject:test, using a sender and subject you know exist in the selected mailboxes. Run the search and compare the results.
In the Microsoft 365 admin center, open Help & support and describe the SensitiveType query, selected locations, and results. Ask Microsoft about supported options for finding payment card data in existing mailboxes.
Monitor Exchange Online email with a Purview DLP policy
Use data loss prevention to detect credit card information in email going forward; it is not a substitute for a retrospective mailbox search.
Work with Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Office files. Its format compatibility makes it easy to move documents between Office and WPS, but it does not search Exchange mailboxes or replace Microsoft Purview.

Frequently Asked Questions
Why does my SensitiveType query return unrelated emails?
The SensitiveType search behavior referenced in this scenario applies to SharePoint and OneDrive for Business, not Exchange mailbox searches. Check the selected locations and test a basic sender-and-subject query before drawing conclusions from the results.
Can DLP find credit card numbers in existing mailbox messages?
Exchange Online DLP is primarily a way to monitor email in transit going forward, not a substitute for a retrospective mailbox search. Contact Microsoft Support through the Microsoft 365 admin center for guidance on existing mailbox content.
How do I test whether my mailbox search is working?
In your Purview search, select the intended Exchange mailboxes and run a query such as from:sender@example.com AND subject:test using details of a known message. Compare the results with the sensitive-data query.
What should I share with Microsoft Support?
Provide the query, selected search locations, and a description of the unexpected results through Help & support in the Microsoft 365 admin center. Mask card numbers and personal information in any screenshots or examples.




