Microsoft 365 Best Practices Library · Email, files and Teams
Microsoft Purview data loss prevention (DLP): a first policy, step by step
Data loss prevention watches for sensitive information, such as card numbers, bank details or Social Security numbers, in email and files, and can warn the person or stop the item leaving the company. The risk with DLP is not the technology. It is switching on a blocking rule before anyone knows what it will catch. This guide shows how to build one useful policy, run it in simulation first, and move to enforcement in calm stages.
Prefer to have it done for you? IT Perfection provides Microsoft 365 security hardening for companies in Irvine, Orange County and Los Angeles County.
Written by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026



Microsoft 365 Best Practices Library › Email, files and Teams › Purview DLP configuration
Why it matters
Most data leaves a company by accident
The common story is not a thief. It is a helpful employee who emails a payroll export to a personal address to finish it at home, or shares a folder with “anyone with the link” because a customer could not open it. Nobody notices, because nothing was looking.
DLP looks. It scans the content of messages and files for patterns it recognizes, such as a credit card number that passes a checksum test near words like “expiration”, and then does what the policy says: record it, show the person a tip, ask for a business reason, or block the action.
The same policy that protects can also disrupt. A rule that blocks every email containing something that looks like an account number will stop invoices, remittance advice and messages to your own bank. That is why Microsoft’s own deployment guidance says to take an incremental approach, starting in simulation mode and ending in enforcement. The rest of this guide follows that order.
How a policy is built
Five parts of every DLP policy
| Action | What the user experiences | Use it for |
|---|---|---|
| Audit only | Nothing is stopped. The match is recorded, and a tip or notification can be shown. | The first weeks, and low-risk matches. |
| Block with override | The action is blocked, but the user can override it and give a reason. The override is recorded. | Most business data. The reasons people give show you where the rule is wrong. |
| Block | The action is blocked with no override. | A small number of clear cases, such as large volumes of card numbers sent outside. |
Source: Microsoft Learn, Create and deploy data loss prevention policies.
Simulation mode
See what a policy would do before it does anything
In simulation mode a policy runs as if it were enforced, but no action is taken. Every item it would have matched is listed on a separate simulation dashboard. This is the most useful feature in DLP, and the reason there is no need to guess.
- A simulation runs for up to 15 days. Its results are kept for 30 days.
- SharePoint and OneDrive: existing files and new or changed files are evaluated, so you learn what is already stored.
- Exchange and Teams: only new items during the simulation are evaluated.
- Watch one checkbox. The option to turn the policy on automatically if it is not edited within fifteen days of the simulation should stay cleared unless you mean it.
- With policy tips shown, a rule set to Block behaves as block with override during simulation, according to Microsoft’s policy reference. Use a pilot group for that stage.
Before you start
What to have ready
- One clear sentence of intent. For example: “Warn staff, and require a reason, before financial account data is sent to anyone outside the company.” Microsoft calls this a policy intent statement.
- The right role. Compliance Administrator, or another role group that includes DLP Compliance Management.
- A list of legitimate flows. Who properly sends this kind of data outside: payroll provider, bank, accountant, insurer. These become exceptions or expected overrides.
- A pilot group. Finance and HR are usually the most useful, since they handle the data.
- Someone to read the alerts. A named person who reviews matches and overrides each week.
- Wording for the policy tip. One friendly sentence that says what was detected and what to do.
- A final name. A policy cannot be renamed after it is created.
Step by step
Create a first DLP policy in eight steps
Start a new policy from a template
Microsoft Purview portal › Data loss prevention › Policies › Create policy
Choose the option for data stored in Microsoft 365 locations; the label of this first choice has changed over time. Pick a category such as Financial or Privacy and a template such as U.S. Financial Data or U.S. Personally Identifiable Information (PII) Data. A template is a starting set of sensitive information types that you can edit.
Name it and keep the full directory
Enter the final name and a description; your intent sentence works well as the description. Accept the default Full directory under admin units unless your organization uses administrative units.
Choose locations
For a first policy, select Exchange email, SharePoint sites and OneDrive accounts. Leave other locations for later. While the policy is in simulation the scope can be broad, because nothing is enforced.
Define the rules
Keep two rules. A low-volume rule, for example one to nine matches shared outside the organization: show a policy tip and audit. A high-volume rule, ten or more matches shared outside: block with override, require a business justification, and send an alert to the named reviewer. Set the condition to content shared with people outside the organization, so internal work is not interrupted.
Write the policy tip and notification
Turn on user notifications and customize the text. Say what was found and what the person should do, in plain words. A good tip teaches; a vague one is ignored.
Set the policy mode to simulation
On the policy mode page, select Run the policy in simulation mode. Leave policy tips off for the first run and leave the automatic turn-on option cleared. Submit.
Illustration of an example first policy set to simulation mode, with a made-up policy name. Labels are shortened; this is not a screenshot.purview.microsoft.comIllustrationOverviewPoliciesAlertsActivity explorerClassifiersSettingsData loss prevention › Policies › Create policyPolicy modePolicyFinancial data shared outsideLocationsExchange email · SharePoint sites · OneDrive accountsRulesLow volume: tip and audit · High volume: block with overrideSimulate or turn on the policyRun the policy in simulation modeShow policy tips while in simulation modeTurn the policy on if it is not edited within fifteen days of the simulationTurn it on right awayKeep it offReview the simulation and tune
Microsoft Purview portal › Data loss prevention › Policies › select the policy › View simulation
After a few days, open the simulation and read the items for review. Look for whole categories of false matches, such as an internal form that always contains nine-digit numbers, and adjust the rule: raise the match count, raise the confidence level, or exclude a sender, site or recipient domain. Re-run the simulation after each change.
Pilot with policy tips, then turn it on
Change the state to simulation with policy tips and narrow the scope to the pilot group. Collect their feedback for a week or two. When the matches are mostly right, change the state to Turn it on right away and widen the scope to everyone. Tell staff the date beforehand and what the tip will look like.
Recommended values
A sensible first policy at a glance
| Setting | Recommended start | Notes |
|---|---|---|
| Template | U.S. Financial Data, or U.S. PII Data | Edit the list of sensitive information types to what your business holds. |
| Locations | Exchange, SharePoint, OneDrive | Add Teams and devices later if licensed. |
| Condition | Shared with people outside the organization | Keeps internal work unaffected. |
| Low-volume rule | Policy tip and audit | One to nine matches. |
| High-volume rule | Block with override, justification required | Ten or more matches. |
| Alerts | On, to a named reviewer | For the high-volume rule. |
| First state | Run the policy in simulation mode | Tips off, automatic turn-on cleared. |
| Final state | Turned on | After simulation and pilot. |
The thresholds are a common starting point, not a Microsoft requirement. Your simulation results should decide the final numbers.
Check that it works
How to confirm the result
- The simulation shows matches. The simulation overview lists matched items per location within a day or two.
- A test email is caught. From a pilot mailbox, send an outside test address a message containing made-up test data in the right format. Use published test numbers, never real customer data.
- The policy tip appears. In Outlook and when sharing a file from OneDrive, the pilot user sees your wording.
- Override works and is recorded. The pilot user overrides with a reason; the reviewer can see the override.
- The alert arrives. The named reviewer receives the alert for the high-volume rule.
- Activity explorer shows the events. The DLP rule matches appear under Activity explorer.
- Legitimate flows still work. Payroll, banking and accounting messages go through as expected.
Mistakes and rollback
Common mistakes, and how to step back
- Turning on a blocking rule on day one. It stops real business mail and staff lose patience with the whole idea.
- Too many information types. A policy that looks for everything matches everything.
- Leaving the policy in simulation for good. Simulation records; it does not protect.
- Nobody reads the alerts. Unread alerts are the same as no policy.
- A vague policy tip. “This violates policy” teaches nothing.
- Blocking internal sharing. Start with content leaving the organization.
- Leaving automatic turn-on selected. The policy enforces itself fifteen days later, perhaps before it is tuned.
- Treating DLP as the only control. It complements sharing settings and sensitivity labels; it does not replace them.
Rollback. Policy state can be changed at any time. If an enforced policy causes trouble, change it back to simulation mode, or to Keep it off, and fix the rule. Changing the state does not delete the policy or its history.
Keep it healthy
A light review routine
| When | What to do |
|---|---|
| Weekly | Read the alerts and the overrides. A repeated override reason usually means the rule needs an exception. |
| Monthly | Look at Activity explorer for trends: which department, which kind of data, which destination. |
| Quarterly | Review exceptions, the reviewer’s name, and whether a second policy is now worth adding. |
| Before any rule change | Copy the policy, change the copy, and run the copy in simulation, as Microsoft suggests, instead of experimenting on the live policy. |
Licenses
Which plan gives you what
| Capability | Typical plan |
|---|---|
| DLP for Exchange email, SharePoint and OneDrive | Microsoft 365 Business Premium, Microsoft 365 E3, Office 365 E3 |
| DLP for Teams chat and channel messages | Microsoft 365 E5 or the E5 Compliance add-on |
| Endpoint DLP on Windows and macOS devices | Microsoft 365 E5 or the E5 Compliance add-on |
Licensing for compliance features changes. Check Microsoft’s security and compliance licensing guidance before relying on this table. DLP supports your obligations under rules such as HIPAA or PCI DSS, but a policy on its own does not make a company compliant.
Have us do it
Prefer to hand this off?
IT Perfection sets up Microsoft Purview DLP for companies in Irvine, Orange County and Los Angeles County: a short workshop on what data matters, a first policy built from a Microsoft template, simulation and tuning, a pilot with your finance or HR team, staged enforcement, and a simple weekly review routine. You receive a written scope and a written quote before any work starts.
Next in the library
Related guides
For a formal written audit of your Microsoft 365 tenant, including data protection settings, OC Security Audit, our related cybersecurity brand also led by Ali Hassani, does that work.

Who does the work
Written by Ali Hassani, CISSP, C|CISO
Ali Hassani has 25+ years of hands-on experience in IT operations, cybersecurity, Microsoft infrastructure, network security and Azure, and works with businesses in Irvine, Orange County and Los Angeles County. Design, implementation and troubleshooting work is planned and reviewed by Ali personally.
This guide is for education and planning. It does not replace a professional audit, compliance assessment or vendor engineering review. Updated November 2026.








FAQ
Microsoft Purview DLP: common questions
What is data loss prevention in Microsoft 365?
Data loss prevention, or DLP, is a Microsoft Purview feature that detects sensitive information such as card numbers, bank account details or Social Security numbers in email, files and other locations, and can audit, warn the user, or block the item from being shared.
Is DLP included in Microsoft 365 Business Premium?
DLP for Exchange email, SharePoint and OneDrive is included in Microsoft 365 Business Premium. DLP for Teams chat and for devices is generally an E5-level feature. Check Microsoft’s current licensing guidance before buying.
What is DLP simulation mode?
In simulation mode a DLP policy runs as if it were enforced but takes no action. Matched items are shown on a simulation dashboard so you can see the effect and tune the policy first. A simulation runs for up to 15 days.
What is the difference between block and block with override?
Block stops the action with no exception. Block with override stops it by default but lets the user continue after giving a business reason, which is recorded. Block with override is usually the better first choice because it shows where a rule is wrong.
Will a DLP policy scan files that are already stored?
For SharePoint and OneDrive locations, existing files and new or changed files are evaluated. For Exchange and Teams, only new items are evaluated from the time the policy or simulation starts.
How long should a DLP policy stay in simulation?
Long enough to see normal business cycles such as payroll and month-end, which is typically two to four weeks including a pilot with policy tips. It should not stay in simulation permanently, because simulation does not protect anything.
Does DLP make my company HIPAA or PCI compliant?
No single setting does. DLP helps you detect and control regulated data, which supports those requirements, but compliance also depends on your other controls, policies and agreements.
Would you rather hand this off?
Microsoft Purview DLP rollout
We set up data loss prevention in Microsoft 365 so sensitive data is protected without blocking normal work.
- The sensitive information your business handles identified
- Policies built and run in simulation mode first, then tuned
- Policies turned on with user notifications, and documented
Each project has a written scope and a written quote before any work starts.
Need this done for your business?
IT Perfection plans, installs and supports this for companies in Irvine and Orange County
The guides explain the steps. If you would rather have it done, planned and documented by an experienced engineer, these are the services that cover it. Design, implementation and troubleshooting work is planned and reviewed by Ali Hassani personally.
Microsoft 365 managed services
Exchange, Teams, SharePoint and OneDrive run and secured for you.
View serviceMicrosoft 365 migration and setup
Mail, calendars and files moved with a tested plan, secured from day one.
View service