Microsoft Purview Data Loss Prevention (DLP) has closed a long-standing gap in SharePoint and OneDrive protection: the ability to block access to sensitive content for specific external domains or individual guest accounts, rather than only offering an all-or-nothing external block. this option lets administrators target particular partner domains or guest SMTP addresses while leaving other external collaboration paths open. Here's what changed, why it matters, and how to configure it correctly.

What's new

Microsoft Purview DLP is adding the ability to block access to sensitive SharePoint Online and OneDrive for Business files based on an external user's domain or specific email address (SMTP), giving admins more granular, enterprise-ready control over external access and reducing the risk of unintended data exposure when collaborating outside the organization.

Why this matters

Before this update, SharePoint/OneDrive DLP access-restriction actions were essentially binary: block everyone, block everyone outside the org, or block only people who accessed content via an "Anyone with the link." That's a blunt instrument for real-world collaboration, where an organization might legitimately share sensitive data with a handful of named vendors or partners but wants to shut the door on everyone else.

The new action solves that by letting you build block lists and allow lists at the domain or individual-user level, so you can, for example:

How it works

The action lives inside the familiar Restrict access or encrypt the content in Microsoft 365 locations block, under a new radio button option: Block access to external domains and users (shown as "Block access for specific external domains or users" in Microsoft's docs). Selecting it exposes a Properties panel where you define:

Selecting Add properties opens the flyout shown in your second screenshot, where you check Domain, choose IS or IS NOT, and enter the domain(s). This is exactly where the "exclude domains" capability lives — configuring the condition as Domain IS NOT effectively creates an allow-list behavior (block everyone except the domains you list), while Domain IS creates a targeted block list (block only the named domains).

Precedence rule

If a user or domain appears in both an allow list and a block list, the block takes effect, the most restrictive rule wins. Plan your domain lists with this in mind. Don't assume adding a domain to an "allow" condition anywhere in the policy will override a block defined elsewhere.

Step-by-step configuration

  1. Go to the Microsoft Purview portal → Data Loss Prevention → Policies.

  2. Ensure the policy scope includes SharePoint Online, OneDrive for Business, or both.

  3. Build your rule conditions: "shared with people outside the organization" + a sensitivity label/SIT/classifier.

  4. In the policy rule, after configuring conditions, go to the Actions section and select Restrict access or encrypt content.

  5. Choose Block access to external domains and users.

  6. Under Properties, select Add properties, check Domain, set the condition to IS (block these) or IS NOT (block everyone except these), and enter the domain(s). Repeat with User SMTP address if you need to target individual guests rather than whole domains.

  7. Optionally build a companion allow condition for trusted partners, remembering that block always wins on conflict.

  8. Save and test in a pilot group before wide deployment. SharePoint can take some time to propagate the block after policy activation.

Important limitations to flag for your stakeholders

These are the details worth calling out explicitly in change documentation, since they affect what "block" actually covers:

Real-world use cases