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.

Ali Hassani, CISSP and Certified CISO, IT PerfectionWritten by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026

Two IT specialists with laptops walking in a data center
1 · IdentifyWe agree which information matters and where it lives.

Microsoft 365 Best Practices Library › Email, files and Teams › Purview DLP configuration

What it isPolicies that detect sensitive information in Exchange email, SharePoint sites, OneDrive accounts and other locations, and then audit, warn, or block sharing with people outside the organization.
Where it livesMicrosoft Purview portal › Data loss prevention › Policies
License neededDLP for Exchange, SharePoint and OneDrive is included in Microsoft 365 Business Premium and in Microsoft 365 E3. DLP for Teams chat and for Windows and macOS devices is generally an E5-level feature. Confirm in Microsoft’s licensing guidance.
Time to set upTwo to three hours to design and create the first policy; two to five weeks in simulation and pilot before full enforcement.
Risk if missingMedium to high Without it, nothing notices when a spreadsheet of customer or payroll data is emailed or shared outside the company.

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

What to look forSensitive information types such as Credit Card Number, U.S. Social Security Number or U.S. Bank Account Number, or a sensitivity label. Microsoft supplies templates that group them, for example U.S. Financial Data.
Where to lookLocations: Exchange email, SharePoint sites, OneDrive accounts, Teams chat and channel messages, devices and others. Each can be narrowed to certain people or sites.
Under which conditionsFor example: content is shared with people outside the organization, and it contains ten or more matches.
What to doAudit only, block with override, or block. Plus a policy tip for the user and an alert or incident report for an administrator.
Policy stateKeep it off, run in simulation mode, simulation with policy tips, or turned on. This is the main control during roll-out.
ActionWhat the user experiencesUse it for
Audit onlyNothing is stopped. The match is recorded, and a tip or notification can be shown.The first weeks, and low-risk matches.
Block with overrideThe 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.
BlockThe 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. Review 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.

  8. 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

SettingRecommended startNotes
TemplateU.S. Financial Data, or U.S. PII DataEdit the list of sensitive information types to what your business holds.
LocationsExchange, SharePoint, OneDriveAdd Teams and devices later if licensed.
ConditionShared with people outside the organizationKeeps internal work unaffected.
Low-volume rulePolicy tip and auditOne to nine matches.
High-volume ruleBlock with override, justification requiredTen or more matches.
AlertsOn, to a named reviewerFor the high-volume rule.
First stateRun the policy in simulation modeTips off, automatic turn-on cleared.
Final stateTurned onAfter 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

WhenWhat to do
WeeklyRead the alerts and the overrides. A repeated override reason usually means the rule needs an exception.
MonthlyLook at Activity explorer for trends: which department, which kind of data, which destination.
QuarterlyReview exceptions, the reviewer’s name, and whether a second policy is now worth adding.
Before any rule changeCopy 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

CapabilityTypical plan
DLP for Exchange email, SharePoint and OneDriveMicrosoft 365 Business Premium, Microsoft 365 E3, Office 365 E3
DLP for Teams chat and channel messagesMicrosoft 365 E5 or the E5 Compliance add-on
Endpoint DLP on Windows and macOS devicesMicrosoft 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.

Ali Hassani, CISSP and Certified CISO, IT Perfection

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.

ISC2 CISSP badgeEC-Council Certified CISO (C|CISO) badgeCisco CCNP Routing and Switching badgeMCSE: Server Infrastructure badgeMicrosoft MCSE badgeMCSA: Security badgeCisco CCNA Cybersecurity badgeMCITP badge

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 service

Microsoft 365 migration and setup

Mail, calendars and files moved with a tested plan, secured from day one.

View service

SPF, DKIM and DMARC setup

Email authentication set up so your domain cannot be spoofed.

View service