Migrate Defender for Cloud Apps File Policies to Microsoft Purview

File policies in Defender for Cloud Apps retire January 6, 2027. This guide covers inventory, condition mapping, capability gaps, and a staged rollout to Purview DLP and auto-labeling — with portal mockups at every step.

Purview · Defender for Cloud Apps · Migration

📁 Migrate File Policies from Defender for Cloud Apps to Microsoft Purview

File policies in Defender for Cloud Apps are retiring January 6, 2027. This guide walks you through inventorying your existing policies, mapping capabilities to Purview DLP and auto-labeling, handling the gaps, and rolling out in stages without a protection gap.

Deadline: Jan 6, 2027 Purview DLP Auto-labeling Defender for Cloud Apps M365 E5

⏰ What's Being Retired and Why It Matters

Microsoft is retiring file policies in Defender for Cloud Apps on January 6, 2027. File-based data protection is consolidating into Microsoft Purview — which has a broader enforcement surface, simulation mode, and a 10,000-policy limit vs. Defender's 50.

🚨 Hard deadline: January 6, 2027. After this date, file policies in Defender for Cloud Apps will stop enforcing. Any data protection gap between your existing policies and your new Purview policies will be live exposure. Do not treat this as a 2026 problem.

Defender for Cloud Apps continues to provide SaaS app discovery, posture management, and threat detection — only the file-based DLP enforcement moves to Purview. The migration affects two types of policies:

✅ Migrates to Purview DLP DLP Detection & Response Policies
Policies that detect sensitive content and take protective action — restrict access, quarantine, notify, alert. Recreate these as Purview DLP policies under Data Loss Prevention.
✅ Migrates to Auto-labeling Auto-labeling Policies
Policies that apply sensitivity labels based on content inspection. Recreate these as Purview auto-labeling policies under Information Protection.

✅ Prerequisites

Licensing

You need Microsoft 365 E5 or Microsoft 365 E5 Compliance, or an equivalent standalone Microsoft Purview DLP license. Without this, Purview DLP for SharePoint/OneDrive (the primary migration target) is not available.

Role Requirements

TaskRequired RoleWhere to assign
Review existing file policies in DefenderCloud App Security AdministratorMicrosoft Defender portal → Settings → Roles
Create/manage Purview DLP policiesCompliance Administrator or Compliance Data AdministratorMicrosoft Purview → Roles & scopes → Role groups
Create auto-labeling policiesCompliance Administrator or Information Protection AdministratorMicrosoft Purview → Roles & scopes → Role groups
💡 The Purview role assignment is separate from the Defender role. An admin who manages Defender for Cloud Apps file policies today may not have Purview DLP access. Verify before starting the migration — waiting for role provisioning mid-project wastes time.

📋 Step 1 — Inventory Your Existing File Policies

Before you create a single Purview policy, document every file policy you have. The migration is a mapping exercise — you need to know exactly what each policy does before you can recreate it.

security.microsoft.com › Cloud Apps › Policies › Policy management
🏠 Home
☁️ Cloud Apps
📋 Policies
Policy management
Policy templates
Cloud Apps › Policies › Policy management
Policy management
Filter by Type → File policy to see all file policies.
Policy nameTypeAppsSeverityStatus
Externally shared PIIFile policySharePoint, OneDriveHighActive
Credit card — quarantineFile policyOneDriveHighActive
Apply Confidential labelFile policySharePoint, OneDriveMediumActive
Public sharing — internal docsFile policySharePointMediumActive
💡 For each policy: document the name, target apps, content inspection method (SIT / regex / DCS), sensitivity label conditions, sharing level filters, and governance actions. This inventory drives every decision in the migration.
📸 Defender portal → Cloud Apps → Policy management. Filter by Type = File policy to see your full inventory before starting the migration.
1

Export your file policy inventory

Go to security.microsoft.com → Cloud Apps → Policies → Policy management. Set Type filter to File policy. Open each policy and document: name, description, target apps, content inspection method, SITs or labels, sharing level filters, user group filters, and governance actions.

2

Categorize each policy

Label each policy as either DLP detection/response (detects content and takes protective action) or Auto-labeling (applies a sensitivity label based on content). Policies that both detect and label need to become two separate Purview policies.

⚠️ If a policy applies a label AND restricts access, recreate it as both an auto-labeling policy AND a DLP policy in Purview.
3

Flag gap policies

Any policy using user quarantine, file ID filtering, folder-level scoping, remove specific collaborator, or expire shared link has no direct Purview equivalent. Note these separately — they need a workaround via Power Automate or SharePoint admin.

⚠️ Capability Gaps You Need to Plan Around

Most file policy capabilities map cleanly to Purview. A handful do not. Know these before you start rebuilding policies, or you will discover the gaps after you disable Defender and have no enforcement.

✅ Full Parity Admin quarantine — identical in Purview DLP. Same workflow, same review interface.
✅ Full Parity Notify file owner / specific users — User notifications in Purview DLP rules cover both.
✅ Full Parity Remove public access / external users — Restrict access actions: Block everyone or block outside org.
✅ Better in Purview Simulation mode — Purview has full simulation mode before enforcement. Defender never had this.
⚠️ Partial — Workaround Available Remove specific collaborator / expire shared link — Purview blocks further access but cannot remove existing sharing. Use a Power Automate flow triggered by the DLP alert to handle this.
⚠️ Partial — Site-level only Folder-level scoping — Purview scopes to SharePoint site, not subfolder. Map folder-scoped policies to their parent site and accept slightly broader scope.
🚫 No Equivalent User quarantine — Purview has no user quarantine folder concept. Workaround: use DLP Restrict Access + Power Automate to move files to a designated folder.
🚫 No Equivalent File ID condition — Purview has no File ID filter. If your policies target specific files by ID, those need a manual process or a SharePoint-side control.
⚠️ Do not run Defender and Purview policies simultaneously on the same content. Overlapping policies create enforcement conflicts — a file can get quarantined by Defender and restricted by Purview at the same time, producing inconsistent user experience and audit gaps. Migrate in stages, validate Purview, then disable Defender.

🔍 Condition Mapping Reference

Use this table when recreating policy conditions in Purview DLP. The detection engine underneath (Data Classification Service) is the same — the condition syntax is what changes.

Defender for Cloud Apps ConditionPurview DLP EquivalentParity
Access level: External or PublicContent is shared with people outside my organization✅ Equivalent
Access level: InternalContent is shared only with people inside my organization✅ Equivalent
Content inspection: SIT / DCS presetContent contains → Sensitive info types (same SIT list)✅ Equivalent
Content inspection: custom regexCustom sensitive information type (create first, then add as SIT condition)✅ Equivalent
Sensitivity label conditionContent contains → Sensitivity labels✅ Equivalent
Select user groupsUser groups condition in DLP rule✅ Equivalent
File name / file extensionDocument name contains / File extension is✅ Equivalent
Minimum violation countInstance count (min and max) per SIT✅ Equivalent
Collaborators (entire organization)Collaborators (domain) — use org domain name⚠️ Partial
Parent folder filterSharePoint site-level scoping only⚠️ Partial
Created / last modified dateDocument created / modified date — SharePoint/OneDrive only⚠️ Partial
File IDNo equivalent🚫 No equivalent
💡 Custom regex patterns: Create a Custom Sensitive Information Type in Purview (Information Protection → Classifiers → Sensitive info types → Create) using the same regex pattern from your Defender file policy. Once the SIT is created and published, it appears in the DLP rule condition picker within 15–30 minutes.

🛡 Step 2 — Migrate DLP Detection & Response Policies

For each file policy categorized as DLP detection/response, create a Purview DLP policy. Walk through the wizard once for your highest-priority policy — it's the same pattern for all of them.

1

Open the Purview DLP policy wizard

purview.microsoft.com → Data loss prevention → Policies → Create policy. Choose Custom policy to define conditions manually (most migrated policies won't match a built-in template exactly).

2

Set locations — SharePoint and OneDrive

Select SharePoint sites and OneDrive accounts to match the original file policy scope. If your policy targeted specific site collections or user groups, scope accordingly. You cannot scope to subfolder — use the SharePoint site as the closest equivalent.

3

Define content conditions

Add the same SITs, sensitivity labels, and sharing conditions as your original policy. If the original policy used a minimum violation count, set the instance count range to match. If it used a custom regex, create the custom SIT first, then add it here.

4

Configure protective actions

Map each governance action from your Defender policy to its Purview equivalent. Restrict access replaces remove public/external access. Admin quarantine is available natively. User quarantine and file deletion require Power Automate flows.

⚠️ If your policy used "Remove specific collaborator" or "Expire shared link" — these have no direct equivalent. Use a Power Automate cloud flow triggered by a DLP alert as your interim control.
5

Enable simulation mode — do not enforce yet

Set the policy to Simulation mode before turning it on. Run it for at least 7 days alongside your active Defender file policy. Compare the DLP matches in Activity Explorer against the alerts in Defender to confirm equivalent detection.

🚫 Do not set the policy to enforce until simulation results match your Defender policy coverage. Switching too early means either over-blocking or under-protecting.
purview.microsoft.com › Data loss prevention › Policies › Create policy › Define policy settings
🛡 Data loss prevention
📋 Policies
📊 Activity explorer
🔔 Alerts
🏷 Information protection
Data loss prevention › Policies › Create policy → Rule editor
Edit rule: Externally shared PII
Conditions
Content contains:
🔍 SIT: Israel ID number 🔍 SIT: Credit card numbers 🔍 SIT: Passport number Instance count: 1 or more
AND Content is shared:
🌐 With people outside my organization
Actions
🚫 Restrict access or encrypt the content
Block only people outside your organization
Send incident reports — notify security team
Notify the user who last modified the content
Policy mode
Run the policy in simulation mode
Policy will detect and report matches but not enforce actions. Review results in Activity Explorer before turning on.
💡 Run this policy in simulation mode for at least 7 days alongside your active Defender file policy. Compare match counts before switching to enforcement.
📸 Purview DLP rule editor — SIT conditions matching the original Defender file policy, with restrict-access action and simulation mode enabled.

🏷 Step 3 — Migrate Auto-labeling Policies

File policies that applied sensitivity labels become Purview auto-labeling policies under Information Protection — not DLP. The configuration path is different, but the detection engine is the same.

⚠️ Auto-labeling policies label new and changed files going forward. To backfill existing content at rest in SharePoint and OneDrive, run an on-demand classification scan after the policy is live (Purview → Information Protection → Auto-labeling → policy → Run scan now).
1

Create an auto-labeling policy

purview.microsoft.com → Information protection → Auto-labeling → Create auto-labeling policy. Choose the SITs or conditions matching your file policy's content inspection rules.

2

Select the same sensitivity label

Choose the exact label your Defender file policy applied. If your policy applied "Confidential - PII," select that same label here. The label must already be published to users in an Information Protection label policy.

3

Set scope — SharePoint sites and OneDrive

Select the same SharePoint sites and OneDrive accounts as your original file policy. Add specific sites if the policy was scoped to particular groups. Remember: folder-level scoping is not available — scope to the parent site.

4

Run simulation first — review matches before enabling

Purview auto-labeling simulation shows you exactly which files would be labeled, with a sample to review. Confirm the matches are correct before turning on automatic labeling. A false-positive label applied at scale is very hard to roll back.

purview.microsoft.com › Information protection › Auto-labeling
🛡 Data loss prevention
🏷 Information protection
🏷 Labels
📋 Label policies
⚙️ Auto-labeling
🔍 On-demand classification
Information protection › Auto-labeling
Auto-labeling policies
Policy nameLabel appliedStatusSimulation matches
Apply Confidential-PII (migrated from MDCA) 🏷 Confidential - PII Simulation 1,840 files
Apply Confidential-Financial 🏷 Confidential - Financial On
Simulation results — Apply Confidential-PII
⚠️ 312 files matched in /HR/Recruitment — review sample before enabling. Most are résumés (expected). 28 files in /Finance are unexpected — investigate before turning on.
Review items to label
Turn on policy
📸 Purview → Information Protection → Auto-labeling. Simulation mode shows exactly which files will be labeled before enforcement — always review before turning on.

🚀 Step 4 — Staged Rollout

Run Purview policies in simulation alongside active Defender policies. Never disable Defender until Purview has proven equivalent detection over at least one week of real traffic.

StageActionValidationDuration
1 — SimulateCreate Purview DLP + auto-labeling in simulation mode. Keep Defender policies active.Compare simulation match counts to Defender alert counts for the same content types.7–14 days
2 — PilotTurn on Purview enforcement for a small pilot group (20–50 users). Defender still active for everyone else.Confirm actions are correct (restrict access, notifications, quarantine), no false positives, user experience as expected.7–14 days
3 — Full enforcementExpand Purview policies to all users. Disable (not delete) Defender file policies.Monitor Purview alerts for 30 days. Confirm no protection gaps. Compare to historical Defender alert baseline.30 days
4 — DecommissionDelete disabled Defender file policies after 30-day validation period.Final audit: all policies migrated, Purview providing equivalent or better coverage.After Stage 3
🚫 Do not disable Defender file policies at the same time as enabling Purview enforcement. There is a propagation delay (up to 24 hours) for new Purview DLP policies to begin enforcing. Overlap the cutover by at least 24 hours to avoid a gap.

🔎 Step 5 — Verify and Decommission

1

Compare policy inventory

Count your Purview DLP policies + auto-labeling policies against your original Defender file policy inventory. Every Defender policy must have at least one Purview policy covering the same content and scope.

2

Cross-check SITs and labels

Every sensitive information type and sensitivity label used in your Defender policies must appear in at least one Purview policy condition. A missing SIT means a class of sensitive content is now unprotected.

3

Disable Defender policies — do not delete yet

In the Defender portal, edit each migrated file policy and set state to Disabled. Keep the disabled policies for 30 days as a reference in case you need to compare configurations or roll back.

4

Delete after 30-day validation

Once you've confirmed Purview policies are providing equivalent protection for 30 days, export screenshots of each Defender policy configuration for your records, then delete them from the Defender portal.

📊 Post-Migration Monitoring

After migration, alerts and activity data move to Purview. Know where to find each data type — your security team's workflow will need updating.

What you needWhere to find it after migration
DLP policy matches and alertspurview.microsoft.com → Data loss prevention → Alerts
File activity historyPurview → Data loss prevention → Activity explorer
Auto-labeling matchesPurview → Information protection → Auto-labeling → [policy] → Items to review
Security incidentsMicrosoft Defender portal → Incidents & alerts (still here)
purview.microsoft.com › Data loss prevention › Activity explorer
🛡 Data loss prevention
📋 Policies
🔔 Alerts
📊 Activity explorer
📈 Reports
Data loss prevention › Activity explorer
Activity explorer
Last 7 days · All activities · Filtered: SharePoint, OneDrive
ActivityPolicyUserFileAction taken
DLP rule matchExternally shared PIIa.cohen@contoso.comHR-Contract-2026.docxBlocked
DLP rule matchExternally shared PIIm.levi@contoso.comCustomer-data-export.xlsxUser override
Auto-label appliedApply Confidential-PIISystemEmployee-list-2026.xlsxLabeled
💡 Activity Explorer is the primary post-migration monitoring tool. Use it to confirm your migrated policies are matching the same content types as the original Defender file policies.
📸 Purview → DLP → Activity Explorer — your primary monitoring view after migration. Filter by location and policy to compare against your historical Defender alert baseline.

🔧 Troubleshooting

IssueCauseResolution
DLP policy not matching expected filesSIT confidence level too high, or location scope is missing sitesLower the confidence level in the SIT condition. Confirm all SharePoint sites are in scope — site collection URLs must match exactly.
Too many false positivesSIT is too broad or missing supporting contextAdd keyword proximity lists to the SIT. Increase confidence level. Use corroborative evidence groups in the rule condition.
Auto-labeling not applying labelsLabel not published to users, or simulation still runningConfirm the label is published in a label policy. Check simulation status — policy must be set to On, not simulation, for automatic labeling to happen.
Alerts not generatingIncident reports not enabled in the DLP rule, or alert recipients not configuredOpen the DLP rule → Incident reports section → Enable "Send an alert to admins" → Add recipients. Check the Alerts tab for suppressed alerts.
Policy matches but action not enforcedPolicy still in simulation/test modeTurn the policy on. Simulation mode generates reports but does not enforce any action.
New Purview policy not enforcing after 24hPolicy propagation delay to SharePoint/OneDrivePolicy propagation to SharePoint takes up to 24 hours. Check policy status shows "On" and wait the full propagation window before escalating.

✅ Migration Checklist

Phase 1 — Inventory
  • Export all file policies from Defender (Cloud Apps → Policy management → filter Type: File policy)
  • Document: name, apps, content inspection method, SITs/labels, sharing filters, user groups, governance actions for each policy
  • Categorize each policy as DLP detection/response or Auto-labeling
  • Flag gap policies: user quarantine, file ID filter, folder scoping, remove specific collaborator, expire shared link
  • Verify Purview role assignments (Compliance Administrator or Compliance Data Administrator)
  • Confirm M365 E5 or E5 Compliance licensing
Phase 2 — Build Purview Policies
  • Create custom sensitive information types for any custom regex patterns from Defender file policies
  • Create Purview DLP policies for each DLP detection/response file policy — in simulation mode
  • Create Purview auto-labeling policies for each labeling file policy — in simulation mode
  • Build Power Automate flows for any gap actions (user quarantine, remove collaborator, expire link)
Phase 3 — Validate
  • Run simulation for minimum 7 days — compare match counts against Defender alert baseline
  • Pilot enforcement for 20–50 users — confirm actions, notifications, user experience
  • Expand enforcement to all users
  • Disable (not delete) Defender file policies — note date
Phase 4 — Decommission
  • Monitor Purview Activity Explorer for 30 days post-cutover
  • Export/screenshot each disabled Defender file policy configuration for archive
  • Delete Defender file policies after 30-day validation period
  • Update security operations runbooks and alert routing to reflect new Purview alert locations
  • Run on-demand classification scan to backfill labels on existing content at rest