PurviewHow-to

Service-side auto-labeling in Purview: simulation, limits and rolling it out safely

How Purview auto-labeling policies behave in practice: simulation, which labels they overwrite, policy conflicts, Exchange and SharePoint specifics, limits and monitoring.

Auto-labeling policies label content where it lives: files at rest in SharePoint and OneDrive, and email while Exchange Online sends or receives it. They don't depend on anyone's app version, but they also act without anyone's confirmation, so a careless rule can label, or encrypt, a lot of content fast. This post goes beyond the basics in rolling out sensitivity labels: how simulation really behaves, what a policy may overwrite, the limits, and how to monitor results.

Errors this guide fixes

  • No matching database is available.Purview portal (saving auto-labeling policy)
How this guide is organized: How it works → Prerequisites → Step-by-step → Verify → Tips & gotchasFlow diagram of the article's sections in reading order: 1. How it works. 2. Prerequisites. 3. Step-by-step (6 steps: Start narrow; Run and read the simulation; Tune, then widen; Decide what may be overwritten; Mind the Exchange specifics; Turn it on and monitor). 4. Verify. 5. Tips & gotchas. Toolbox: New-AutoSensitivityLabelRule, Policies › Auto-labeling policies, Summary › View details, TestWithoutNotifications, TestWithNotifications.1How it works2Prerequisites3Step-by-step4Verify5Tips & gotchas1Start narrow2Run and readthe simulation3Tune, thenwiden4Decide whatmay be overw…5Mind theExchange sp…6Turn it on andmonitorTOOLBOXNew-AutoSensitivityLabelRulePolicies › Auto-labeling policiesSummary › View detailsTestWithoutNotificationsTestWithNotificationsHow this guide is organized: How it works → Prerequisites → Step-by-step → Verify → Tips & gotchasFlow diagram of the article's sections in reading order: 1. How it works. 2. Prerequisites. 3. Step-by-step (6 steps: Start narrow; Run and read the simulation; Tune, then widen; Decide what may be overwritten; Mind the Exchange specifics; Turn it on and monitor). 4. Verify. 5. Tips & gotchas. Toolbox: New-AutoSensitivityLabelRule, Policies › Auto-labeling policies, Summary › View details, TestWithoutNotifications, TestWithNotifications.1How it works2Prerequisites3Step-by-step1Start narrow2Run and read the simulation3Tune, then widen4Decide what may be overwritten5Mind the Exchange specifics6Turn it on and monitor4Verify5Tips & gotchasTOOLBOXNew-AutoSensitivityLabelRulePolicies › Auto-labeling policiesSummary › View detailsTestWithoutNotificationsTestWithNotifications
At a glance: how this guide is organized · 6 steps · 5 key settings and tools

How it works#

Purview has two automatic labeling methods, and they complement each other:

BehaviorLabel setting (Office apps)Auto-labeling policy (service-side)
Depends on app versionYesNo
Recommend a label, user decidesYesNo
Simulation modeNoYes
Locations, exceptions, nested AND/OR/NOT rulesNoYes
PDF filesNoYes
Check Exchange attachments, label incoming emailNoYes
Replace a manual, lower-priority labelNoConfigurable
Visual markingsYesEmail only

For Exchange, a policy labels mail in transit, never mail already in mailboxes. For SharePoint and OneDrive, it labels supported files at rest (.docx, .xlsx, .pptx and, once PDF support is enabled, PDFs), whether they existed before the policy or not.

Prerequisites#

  • An E5-tier license such as Microsoft 365 E5 or E5 Compliance. E3 and Business Premium include manual labeling but not auto-labeling; check Microsoft's licensing guidance for your plan.
  • Auditing turned on (simulation depends on it), sensitivity labels enabled for Office files in SharePoint and OneDrive, and PDF support enabled if you want PDFs labeled. Without it, PDFs are skipped unevaluated.
  • A label that isn't a parent label, scoped to Files & other data assets and/or Emails as needed. For SharePoint or OneDrive, an encrypting label must use Assign permissions now with User access to content expires set to Never.
  • Compliance Administrator or Compliance Data Administrator to turn a policy on, and the Data Classification Content Viewer role to preview matched content.

Microsoft warns that missing any of these typically leaves a policy running without labeling anything, and without an error.

Step-by-step#

Rolling out a service-side auto-labeling policy safelyStep 1: Start narrow on one site. Target one indexed SharePoint site instead of All; TestWithoutNotifications simulates silently Step 2: Run and read the simulation. Allow about 12 hours; the matched count is an estimate from sampling Step 3: Tune, then widen in steps. Cut false positives and rerun; then more sites, OneDrive, then Exchange Step 4: Decide what may be overwritten. Manual labels aren't replaced by default; higher-priority labels never are Step 5: Check the Exchange specifics. Attachments are scanned but the email gets the label; mail in mailboxes is never labeled Step 6: Turn on the policy and monitor Insights. Labeled versus failed files over 30 days and the top failure reasons1Start narrow on one siteTarget one indexed SharePoint siteinstead of All;TestWithoutNotifications simulatessilently2Run and read the simulationAllow about 12 hours; the matchedcount is an estimate from sampling3Tune, then widen in stepsCut false positives and rerun; thenmore sites, OneDrive, thenExchange4Decide what may beoverwrittenManual labels aren't replaced bydefault; higher-priority labels neverare5Check the ExchangespecificsAttachments are scanned but theemail gets the label; mail inmailboxes is never labeled6Turn on the policy andmonitor InsightsLabeled versus failed files over 30days and the top failure reasonsRolling out a service-side auto-labeling policy safelyStep 1: Start narrow on one site. Target one indexed SharePoint site instead of All; TestWithoutNotifications simulates silently Step 2: Run and read the simulation. Allow about 12 hours; the matched count is an estimate from sampling Step 3: Tune, then widen in steps. Cut false positives and rerun; then more sites, OneDrive, then Exchange Step 4: Decide what may be overwritten. Manual labels aren't replaced by default; higher-priority labels never are Step 5: Check the Exchange specifics. Attachments are scanned but the email gets the label; mail in mailboxes is never labeled Step 6: Turn on the policy and monitor Insights. Labeled versus failed files over 30 days and the top failure reasons1Start narrow on one siteTarget one indexed SharePoint site instead of All;TestWithoutNotifications simulates silently2Run and read the simulationAllow about 12 hours; the matched count is an estimatefrom sampling3Tune, then widen in stepsCut false positives and rerun; then more sites, OneDrive,then Exchange4Decide what may be overwrittenManual labels aren't replaced by default; higher-prioritylabels never are5Check the Exchange specificsAttachments are scanned but the email gets the label;mail in mailboxes is never labeled6Turn on the policy and monitor InsightsLabeled versus failed files over 30 days and the topfailure reasons
Figure 1 · Process Rolling out a service-side auto-labeling policy safely. Move from a narrow simulation to a live policy one step at a time, and rerun the simulation after every change.

1. Start narrow#

In the Microsoft Purview portal, go to Solutions › Information Protection › Policies › Auto-labeling policies, select + Create auto-labeling policy and choose to apply a label. Start from a template or a custom policy and target one SharePoint site instead of All; a site must be indexed before you can add it. Sensitive information types only evaluate content created or modified after the type was created or last changed, so run on-demand classification for older files.

PowerShell does the same and makes the scope explicit; add the conditions afterwards with New-AutoSensitivityLabelRule:

PowerShell
Connect-IPPSSession
New-AutoSensitivityLabelPolicy -Name "Finance pilot" `
    -SharePointLocation "https://contoso.sharepoint.com/sites/Finance" `
    -ApplySensitivityLabel "Finance Confidential" -Mode TestWithoutNotifications

TestWithoutNotifications simulates silently, TestWithNotifications simulates and sends notifications, and Enable labels for real.

2. Run and read the simulation#

  • A policy can't label anything until it has run at least one simulation. Allow about 12 hours; a notification goes to the account configured for activity alerts.
  • Open the policy and select Summary › View details. The matched count is an estimate from sampling, at most 100 items per site are displayed, and CSV exports stop at 50,000 records.
  • With more than 20,000,000 matched files, the policy can't be turned on; narrow it and rerun.
  • Simulation still fires alert policies on matching activity, so scope or pause them for the run.
  • Exchange simulation only sees mail sent and received during the run, so results differ between runs.

3. Tune, then widen#

Cut false positives with higher instance counts or confidence, exceptions, or by excluding noisy sites, and rerun after every change. Then widen in steps: more sites, OneDrive, then Exchange. Avoid a scheduled turn-on date until you trust the results, because it turns the policy on without waiting for your review.

4. Decide what may be overwritten#

Existing labelReplaced by the policy?
Manual, lower priorityNo by default; configurable on Additional label settings
Manual, higher priorityNo
Automatic or default label, lower priorityYes
Automatic or default label, higher priorityNo

A policy that applies labels never leaves content unlabeled; only a label-removal policy for SharePoint and OneDrive does, and it removes manual labels too. Simulation shows one policy at a time, so conflicts resolve only when all policies run: if one policy may replace manual labels and another may not, the label stays; if one removes a label while another applies one, applying wins.

5. Mind the Exchange specifics#

  • Office and PDF attachments are scanned, but the email gets the label. With an encrypting label, unencrypted Office attachments inherit the encryption.
  • Incoming external email is labeled only when the Exchange location is All with nothing excluded, and it's encrypted only if you set a Rights Management owner (-ExternalMailRightsManagementOwner).
  • When the label encrypts, IRM settings from mail flow rules or DLP policies are ignored for that message.
  • Don't use these policies to send encrypted mass mailings; Microsoft warns of send failures and NDRs.

6. Turn it on and monitor#

When the simulation is in an eligible state and the matches look right, select Turn on policy. The policy's Insights tab then shows files labeled to date, labeled versus failed files over 30 days, the top failure reasons, the most frequent sensitive info types and a per-source breakdown. For an Exchange-only policy, review email labeling in activity explorer.

Verify#

PowerShell
Get-AutoSensitivityLabelPolicy | Format-Table Name, Mode
  • Live policies show Mode as Enable; pilots show TestWithoutNotifications or TestWithNotifications.
  • Matched files show the label in the library's Sensitivity column, while Modified and Modified By keep their values. With an encrypting label, the last person who modified the file becomes its Rights Management issuer and owner.
  • The Insights tab's failed count is low and every failure reason is understood.

Tips & gotchas#

  • Limits: up to 500,000 automatically labeled files per tenant per day (raised from 100,000; the increase is rolling out worldwide during October 2026, so check your tenant) and 100 policies per tenant. In the portal, a policy can list up to 1,000 SharePoint sites or 100 OneDrive users or groups (All is exempt); adaptive scopes in PowerShell reach 50,000 sites.
  • Skipped files: open or checked-out files, libraries that require checkout, list item attachments and detached OneDrive accounts.
  • No visual markings on documents; users get them by reapplying the label in Office.
  • No matching database is available. when saving a new policy is a known transient backend condition. Retry, and open a support case if it keeps failing for 24 hours.
  • A duplicated policy starts in simulation, even when the source is on.
  • Target large estates with adaptive scopes, and see where labeled content lives with content explorer.

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

Intune Subject Matter Expert in Cairo, Egypt, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)