Data loss prevention is not a single switch you turn on. It is a set of carefully scoped rules that notice sensitive information in the places people work, decide whether that activity is risky, and respond in a way that protects the data without stopping normal business. The first policy you design matters because it sets the pattern for everything that follows: specific scope, clear detection logic, measured enforcement, and testing before real users are blocked.

Start with the job, not the tool

Data loss prevention, usually shortened to DLP, is the practice of reducing the chance that sensitive information is shared with people, systems, or places that should not receive it. Sensitive information can include financial records, proprietary business data, credit card numbers, health records, national identifiers such as Social Security numbers, or any other information your organization has a duty to protect.

In Microsoft Purview, Microsoft's data governance and compliance platform, DLP is implemented through policies. A policy is not useful because it exists. It is useful when it expresses a real business rule clearly enough for software to enforce it: for example, do not allow customer credit card numbers to be emailed to external recipients unless there is an approved exception.

A good first policy should be narrow enough to understand. If it fires, an administrator should be able to explain why. If it blocks someone, the user should understand what happened and what to do next. If it creates alerts, the security or compliance team should know how to triage them.

📌
Simple test. If you cannot state the policy in one plain sentence, it is probably not ready to enforce.

The three-part anatomy of a DLP policy

Every DLP policy has three moving parts. Locations define where the policy watches. Conditions define what the policy looks for. Actions define what happens when the conditions are met.

Those three parts are easy to name, but they are often confused in practice. A location is not a rule; it is only the place where a rule can run. A condition is not enforcement; it is the test that decides whether something matters. An action is the response, and the available responses depend heavily on the location.

In Microsoft Purview, conditions and their matching actions are organized as rules. A policy can contain one or more rules, but the first policy should usually stay simple: one clear risk, one clear detection pattern, and one clear response.

Every DLP policy has three parts: locations, conditions, and actions.Policy AnatomyDLP policyLocationsConditionsActions
Every DLP policy has three parts: locations, conditions, and actions.

Choose locations deliberately

Locations are the workloads, applications, devices, or traffic paths where the policy is active. In Microsoft Purview, common DLP locations include Exchange email, SharePoint sites, OneDrive accounts, Microsoft Teams chats and channels, endpoint devices such as Windows or Mac computers, and inline web traffic in a browser.

It is tempting to choose every location because more coverage sounds safer. That can be the wrong first move. A policy designed for email may not make sense in Teams. A rule that is reasonable for external sharing from SharePoint may be too disruptive if applied to every endpoint file operation. Scope is a design decision, not an afterthought.

Start where the risk is easiest to describe and the response is easiest to justify. If the problem is employees emailing customer card data outside the organization, start with Exchange email. If the problem is copying regulated documents to removable Universal Serial Bus drives, usually called USB drives, start with endpoint DLP. The better the location matches the risk, the fewer surprises the policy will create.

  • Use Exchange email when the risk is sensitive content being sent in messages or attachments.
  • Use SharePoint and OneDrive when the risk is stored files being shared too broadly.
  • Use Teams when the risk is sensitive content appearing in chats or channels.
  • Use endpoint devices when the risk is local activity such as copying to removable media.
  • Use browser-based inspection when the risk involves web traffic that must be evaluated inline.

Write conditions that match real risk

Conditions define the pattern that must be true before a rule takes action. They can look for a sensitive information type, such as a credit card number or Social Security number. They can look for an item with a specific sensitivity label. They can also include sharing context, such as whether the content is being shared internally or externally.

The important word is context. Finding one number that resembles a credit card number inside an internal test file is not the same risk as finding dozens of valid-looking card numbers in an email addressed to an external recipient. Count, confidence, recipient scope, content type, label, and business process all affect whether a match is meaningful.

A condition that is too broad creates false positives, which are matches that look risky to the policy but are acceptable in practice. A condition that is too narrow creates false negatives, which are risky events the policy fails to detect. The aim is not perfection on day one. The aim is a rule that is precise enough to test and improve.

Select actions by location

Actions are what the system does after a rule matches. This is where many first DLP policies become too blunt. The same sensitive information can require different actions depending on where it appears.

In Exchange, SharePoint, or OneDrive, an action might block external access to the content, show the user a policy tip, and send an email notification. In Teams chat or a channel, an action might block the sensitive information from being shared at all. On a Windows or Mac endpoint, an action might audit or restrict copying a sensitive file to a removable USB drive. In an Office app, an action might show a warning pop-up, block the activity outright, or block it while allowing the user to override with a business justification.

This is why actions should be designed as user experience as much as security control. A silent audit may be right during discovery. A warning may be right when the user can safely correct the behavior. A hard block may be right when the action creates unacceptable exposure.

The right DLP action depends on where the sensitive data appears.Actions By LocationEmailBlock + tipTeamsBlock shareEndpointRestrict USBOffice appWarn or block
The right DLP action depends on where the sensitive data appears.

Use simulation before enforcement

A new or changed DLP policy should be tested before it is enforced. Microsoft Purview provides simulation mode for this purpose. Simulation mode shows what the policy would have done across the items in scope, without actually applying the blocking or restriction actions to users.

This matters because the first version of a policy is rarely the best version. Simulation can reveal unexpected matches, noisy templates, business processes that need exceptions, or conditions that are too broad. It lets administrators tune the policy before real users are interrupted.

Simulation is not a ceremonial step. It is the point where the policy leaves theory and meets the data estate. A rule that looks elegant in a configuration screen may behave very differently when it sees real documents, real messages, and real work patterns.

⚠️
Do not skip testing. A broad DLP rule can block legitimate work just as effectively as it blocks risky sharing.
Test a new policy in simulation, tune it, then enforce.Simulate FirstSimulateTuneEnforce
Test a new policy in simulation, tune it, then enforce.

Worked example: blocking credit card numbers by email

Consider a fictional bank, Halverton Trust Bank. The bank wants to prevent employees from emailing customer credit card numbers to external recipients. The business sentence is clear: customer card data must not leave the organization through ordinary email unless there is a justified and approved business reason.

The location is Exchange email. The condition is the built-in Credit Card Number sensitive information type detected in a message or attachment being sent outside the organization. The action is to block the email, show the sender a policy tip explaining the reason, and allow an override with justification only for legitimate cases, such as a verified payment processor process.

Halverton runs the policy in simulation mode for two weeks. The results show that the rule would have blocked a legitimate internal reporting process that used masked card numbers for audit work. The team adjusts the condition to exclude that specific report template, reviews the simulation results again, and only then enables enforcement.

That small adjustment is the difference between a control people trust and a control people work around. The policy still protects the important risk, but it no longer treats a known safe process as suspicious.

✅
Good outcome. The policy became stronger because simulation found a real business exception before enforcement affected users.
Card numbers sent outside are blocked with a policy tip and override.Blocking Card DataCard # to outside?YesNoBlock + tipAllow send
Card numbers sent outside are blocked with a policy tip and override.

The decisions leaders and practitioners must make

Designing a first DLP policy is not only an administrator task. It forces practical decisions about risk appetite, employee experience, exception handling, and operational ownership.

Leaders need to decide which data loss scenarios matter most, which ones justify hard blocking, and where the organization is willing to tolerate warnings or overrides. Practitioners need to translate those decisions into locations, conditions, actions, policy tips, alerts, and review processes.

The most durable DLP programs start with a small number of well-understood controls, then expand. Each new policy should have an owner, a reason to exist, a testing period, a plan for exceptions, and a way to measure whether it is reducing risk without creating unnecessary friction.

  • What sensitive data are we protecting first?
  • Where does that data most often leave approved boundaries?
  • Should the first response be audit, warn, block with override, or block without override?
  • Who reviews alerts and override justifications?
  • How will we handle legitimate business exceptions?
  • When will we revisit the policy after enforcement begins?

Key takeaways

  • A DLP policy has three core parts: locations, conditions, and actions.
  • Locations define where the policy watches, such as email, SharePoint, OneDrive, Teams, endpoints, or browser traffic.
  • Conditions should match real risk, not just isolated patterns of sensitive data.
  • Actions vary by location, so the same detection can lead to different responses in email, Teams, devices, and Office apps.
  • Simulation mode should be used before enforcement to find false positives and business exceptions.
  • A strong first policy is narrow, explainable, tested, and owned by both business and technical stakeholders.

Glossary

Data loss prevention
Data loss prevention is the practice of detecting and reducing inappropriate sharing, transfer, or exposure of sensitive information.
DLP policy
A DLP policy is a configured set of locations, conditions, and actions used to detect and respond to risky handling of sensitive data.
Location
A location is a place where a DLP policy watches for activity, such as email, SharePoint, OneDrive, Teams, an endpoint device, or browser traffic.
Condition
A condition is the test a DLP rule uses to decide whether content or activity matches a defined risk pattern.
Action
An action is the response taken when a DLP rule matches, such as auditing, warning, blocking, or allowing an override with justification.
Sensitive information type
A sensitive information type is a built-in or custom pattern used to identify data such as credit card numbers, health identifiers, or government identifiers.
Sensitivity label
A sensitivity label is a classification applied to content to indicate its protection level, such as confidential or highly confidential.
Policy tip
A policy tip is a message shown to a user explaining that their action may violate a DLP policy and what they can do next.
Simulation mode
Simulation mode tests what a DLP policy would do without enforcing its blocking or restriction actions on users.