Email Search Issues

Search Microsoft 365 Mailboxes for Credit Card Numbers

Adam DavisAdam Davis Nov 20, 2026 869 views

Question details

Identify Microsoft 365 mailbox messages that contain payment card information.

How to Search Microsoft 365 Mailboxes for Credit Card Numbers
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.
Before you start

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.

Solution 1Recommended

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.

1
Review search locations

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.

2
Test a basic query

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.

3
Request guidance

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.

Protect sensitive data: Do not include full card numbers in a support request or screenshot. Mask personal and payment information before sharing examples.
Free Microsoft Office alternative

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.

Free tools for everyday document, spreadsheet, and presentation workCompatibility with Microsoft Office formats including DOCX, XLSX, and PPTXA familiar interface that makes migration straightforwardOpen and review exported search reports in supported document and spreadsheet formats
microsoft office alternative - wps office

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.