Implementing Retention Labels and Policies
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 11 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Implementing Retention Labels and Policies in Microsoft Purview
Introduction: The Necessity of Data Governance
In the modern digital landscape, organizations generate massive volumes of data every single day. From emails and instant messages to complex project files and financial records, the sheer scale of information can become a significant liability if not managed correctly. Data governance is no longer just an IT concern; it is a fundamental business requirement for legal compliance, risk mitigation, and operational efficiency. If you keep data for too long, you increase your exposure to legal discovery requests and potential security breaches. If you delete data too early, you may violate industry regulations or lose critical business intelligence.
Microsoft Purview provides a centralized framework to manage this data lifecycle through Retention Labels and Retention Policies. By implementing these tools, you can ensure that your organization retains what it must and deletes what it should, all while minimizing the administrative burden on your end-users. This lesson will guide you through the intricacies of these features, helping you understand how to design, deploy, and monitor an effective data management strategy that aligns with your organizational requirements.
Not read yet
Understanding the Difference: Retention Policies vs. Retention Labels
Before diving into the implementation steps, it is vital to distinguish between retention policies and retention labels. While both are used to manage the data lifecycle, they operate at different granularities and serve different purposes within your information architecture.
Retention Policies
Retention policies are designed to be broad, container-level tools. You apply them to entire workloads, such as all Exchange mailboxes, all SharePoint sites, or all OneDrive accounts. These policies are "set and forget"—once configured, they automatically apply to all data within the selected locations without requiring any action from the end-user. They are ideal for baseline compliance requirements, such as a company-wide mandate stating that all emails must be kept for seven years.
Retention Labels
Retention labels, by contrast, are granular and content-specific. They are designed to be applied to individual items, such as a specific document, a single email, or a file within a SharePoint library. Because they are item-level, they allow for much more precise control. You can apply a label to a specific "Project Contract" document that triggers a five-year retention period, while a "Marketing Flyer" in the same folder might have a label that deletes it after one year. Labels can be applied manually by users, automatically based on keywords or sensitive information types, or as part of a default setting on a folder.
Callout: Retention Policy vs. Retention Label Think of a Retention Policy as a "blanket" that covers an entire room (like a SharePoint site), ensuring everything under it follows the same rules. Think of a Retention Label as a "tag" you place on specific boxes within that room. The tag allows you to treat that specific box differently from everything else in the room. Use policies for broad, location-based requirements and labels for specific, content-based requirements.
Not read yet
Designing Your Retention Strategy
Before you begin clicking through the Microsoft Purview portal, you must invest time in strategy and planning. A common mistake is jumping straight into technical configuration without clear business requirements.
Step 1: Identify Your Data Types
Start by cataloging the types of data your organization creates. Engage with your legal, HR, and finance departments to determine the specific retention periods for different categories of information. For example, tax records might require a seven-year retention period, while internal project drafts might only require six months.
Step 2: Determine Scope and Location
Map your data types to the locations where they reside. If your financial records are stored exclusively in a specific SharePoint site, you can target your retention policy directly to that site. If your legal hold data is scattered across email and Teams chats, you will need to ensure your policies cover those specific workloads.
Step 3: Define Lifecycle Actions
For every data category, you need to decide what happens when the retention period expires. Your options generally include:
- Retain and then delete: Keep the item for a set period and remove it automatically once that time passes.
- Retain only: Keep the item indefinitely or for a set period, but do not perform an action after the period ends.
- Delete only: Remove items after a certain age, without any obligation to keep them for a minimum duration.
Not read yet
Implementing Retention Policies: Step-by-Step
Retention policies are the most efficient way to enforce baseline compliance. Follow these steps to configure a policy in the Microsoft Purview compliance portal.
- Navigate to the Portal: Log in to the Microsoft Purview compliance portal and select Data lifecycle management > Microsoft 365 > Retention policies.
- Create New Policy: Click on New retention policy. Provide a descriptive name that reflects its purpose (e.g., "7-Year Financial Records Policy").
- Define Scope: Choose whether the policy is "Adaptive" or "Static." Static policies are based on specific locations, while adaptive policies use queries to dynamically include or exclude users and sites based on attributes like department or location.
- Select Locations: Select the workloads you wish to include. You can toggle on Exchange email, SharePoint sites, OneDrive accounts, and Microsoft 365 Groups.
- Configure Settings: Define the retention period (e.g., 7 years) and the action to take at the end (e.g., delete items automatically).
- Review and Submit: Carefully review your settings. Once the policy is submitted, it can take up to 24 hours to take effect across your tenant.
Tip: Always start with a "test" policy applied to a small set of users or a single SharePoint site. Verify that the policy behaves as expected by checking the audit logs before rolling it out to the entire organization.
Not read yet
Implementing Retention Labels: A Deep Dive
Retention labels provide the surgical precision required for complex compliance landscapes. Implementing them involves a two-stage process: creating the label and then publishing or auto-applying it.
Creating a Retention Label
- Navigate to Data lifecycle management > Microsoft 365 > Retention labels.
- Select Create a label.
- Give the label a clear, user-friendly name (e.g., "Legal Hold - 10 Years").
- Define the retention settings. You can set the timer to start based on when the item was created, when it was last modified, or when it was labeled.
- If you choose to delete the item after the period, you can also trigger a disposition review, which requires a human to approve the deletion before it occurs.
Publishing vs. Auto-Applying
Once a label is created, it does nothing until it is applied to content. You have two primary ways to make this happen:
- Publishing Labels: You create a "Label Policy" that makes the labels available to users. Users can then manually apply these labels to documents in Word, Excel, or SharePoint. This is useful for scenarios where human judgment is required (e.g., a user deciding if a document is a "Contract" or a "Draft").
- Auto-Apply Labels: You create a policy that automatically applies a label based on specific conditions. These conditions can include keywords, sensitive information types (like credit card numbers or social security numbers), or trainable classifiers.
Note: Auto-labeling policies require specific licenses, such as Microsoft 365 E5 or Office 365 E5. Ensure your tenant has the appropriate licensing before attempting to configure auto-labeling rules.
Not read yet
Practical Example: Automating Compliance for Sensitive Data
Let’s look at a real-world scenario. Your organization needs to ensure that any document containing a Social Security Number is automatically retained for 10 years and then deleted.
- Create the Label: Create a label named "PII - 10 Year Retention." Set the retention period to 10 years and the action to "Delete."
- Create Auto-Apply Policy: Navigate to Label policies > Auto-apply a label.
- Define Condition: Choose the "Sensitive information types" condition. Select "U.S. Social Security Number" from the list.
- Apply the Label: Select the "PII - 10 Year Retention" label you created earlier.
- Target Locations: Select SharePoint and OneDrive.
- Deployment: Once active, Purview will scan your environment. Whenever a document is detected that contains an SSN, the system will apply the label, ensuring the document is protected by the 10-year policy.
Not read yet
Using PowerShell for Advanced Management
While the GUI is excellent for most tasks, PowerShell allows for bulk operations and more complex filtering that the portal might not easily support. The ExchangeOnlineManagement and Microsoft.Graph modules are essential here.
Example: Creating a Retention Label via PowerShell
# Connect to Security & Compliance Center
Connect-IPPSSession
# Create a new retention label
New-RetentionComplianceRule -Name "Finance_Records_Rule" -RetentionLabel "Finance_Records_Label" -ContentMatchQuery "Subject:'Invoice'"
# Get status of existing policies
Get-RetentionCompliancePolicy | Select-Object Name, Workload, Enabled
Explanation of the code:
Connect-IPPSSessionestablishes the connection to the backend compliance services.New-RetentionComplianceRulelinks a specific label to a query. In this example, any item with "Invoice" in the subject line will be subject to the "Finance_Records_Label" settings.Get-RetentionCompliancePolicyis a critical diagnostic command that helps you audit which policies are currently active in your environment.
Not read yet
Best Practices for Information Protection
Implementing retention is not a one-time project; it is an ongoing process of refinement. Follow these industry-standard practices to maintain a healthy environment:
- Implement Disposition Reviews: For sensitive or critical data, always enable the disposition review feature. This adds a human step in the process, preventing accidental loss of data that might have been mislabeled.
- Use Descriptive Label Names: Avoid generic names like "Label 1" or "Policy A." Use clear, business-centric names like "Legal_Hold_7Yr" or "Public_Drafts_30Days" so users and admins understand the impact of the policy immediately.
- Monitor via Audit Logs: Regularly check the Microsoft Purview audit logs to see which labels are being applied and by whom. This helps identify if users are applying labels incorrectly or if auto-labeling rules are too aggressive.
- Minimize Overlap: Avoid applying multiple policies to the same location if they conflict. If an item is subject to two retention policies with different durations, the system will apply the longest retention period to ensure compliance.
- Educate End-Users: If you are using manual labels, provide clear documentation and training. If users don't understand why they are labeling a document, they will either ignore the requirement or pick the wrong label.
Not read yet
Common Pitfalls and How to Avoid Them
Even with the best intentions, organizations often hit roadblocks during implementation. Being aware of these pitfalls can save you significant time.
1. The "Default" Trap
Many admins assume that applying a label to a folder will automatically apply it to all existing files. In most cases, it does not. Applying a label to a folder usually only applies that label to new files added to that folder. You must use PowerShell or bulk-edit features to apply labels to existing content.
2. Ignoring "Hold" Conflicts
If an item is on "Litigation Hold" (often used in Exchange), it takes precedence over retention policies. Even if your policy says to delete an item after seven years, the litigation hold will prevent that deletion. Always check for active eDiscovery holds before troubleshooting why a retention policy "isn't working."
3. Over-Reliance on Auto-Labeling
While auto-labeling is powerful, it is not perfect. It relies on pattern matching or classification algorithms that can result in false positives. Always perform a test run on a small library before deploying an auto-labeling policy to your entire SharePoint environment.
4. Excessive Retention
A common mistake is keeping everything forever "just in case." This creates a massive target for attackers and significantly increases the complexity of legal discovery. Work with your legal team to define the minimum required retention period, rather than the maximum.
Warning: Be extremely careful when testing deletion policies. Once a policy is in effect, it can delete data permanently. Always test in a sandbox tenant or a dedicated test site collection before applying policies to production data.
Not read yet
Comparison Table: Retention Features
| Feature | Retention Policy | Retention Label |
|---|---|---|
| Scope | Entire workload (e.g., all mailboxes) | Individual items (e.g., specific files) |
| Application | Automatic | Manual or Auto-applied |
| User Interaction | None | Can require user action |
| Granularity | Low | High |
| Primary Use Case | Baseline compliance | Specific data classification |
Frequently Asked Questions
Q: What happens if I delete a retention policy? A: If you delete a policy, the retention settings are removed. However, if the policy was keeping data from being deleted, removing it may allow that data to be purged by the system, depending on the age of the files. Always be cautious when removing policies.
Q: Can I change a retention period after a policy is active? A: Yes, you can edit a policy or label at any time. If you increase the retention period, the system will honor the new, longer duration. If you decrease it, the system will apply the new, shorter duration, which may result in data being deleted sooner than previously expected.
Q: Does Purview delete files immediately when the time expires? A: No. After the retention period expires, the system typically runs a job that can take up to seven days to permanently delete the content. Do not expect instantaneous deletion the moment the clock strikes midnight.
Q: Can I use retention labels in Teams? A: Yes, you can apply retention labels to messages in Teams and to files stored in the associated SharePoint site. However, the experience for messages is different from files; messages are governed by the underlying Exchange mailbox storage.
Not read yet
Summary and Key Takeaways
Implementing retention labels and policies in Microsoft Purview is a critical step toward achieving a mature data governance posture. By moving away from manual, ad-hoc data management and toward a systematic, automated approach, you significantly reduce your organization's risk profile.
Key Takeaways:
- Strategic Alignment: Always define your business requirements with legal and HR stakeholders before configuring technical settings.
- Policy vs. Label: Use Retention Policies for broad, location-based requirements and Retention Labels for specific, content-based requirements.
- Test Before Deploying: Always validate your configurations in a controlled environment to avoid accidental data loss.
- Lifecycle Management: Ensure you have a clear understanding of the "delete" action and whether a disposition review is necessary for your critical records.
- Monitor and Audit: Use the Microsoft Purview audit logs to track the effectiveness of your policies and ensure compliance with internal standards.
- Understand Precedence: Remember that litigation holds and eDiscovery holds always override standard retention policies.
- Iterate: Data governance is a continuous journey. Review your policies annually to ensure they still meet the evolving needs of your organization and the changing landscape of data regulations.
By following these principles and maintaining a disciplined approach to your configuration, you can effectively manage your organization’s data, ensuring that you remain compliant while keeping your digital environment clean and manageable. The tools provided by Microsoft Purview are powerful, but their true value is realized only when they are applied with a clear strategy and a deep understanding of the underlying data.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Creating a Microsoft 365 Tenant
- Creating a Microsoft 365 Tenant Quiz5q
- Implementing and Managing Domains
- Implementing and Managing Domains Quiz5q
- Configuring Organization Settings
- Configuring Organization Settings Quiz5q
- Monitoring Microsoft 365 Service Health
- Monitoring Microsoft 365 Service Health Quiz5q
- Configuring Network Connectivity Insights
- Configuring Network Connectivity Insights Quiz5q
- Managing Software Updates in Microsoft 365
- Managing Software Updates in Microsoft 365 Quiz5q
- Monitoring Microsoft 365 Adoption and Usage
- Monitoring Microsoft 365 Adoption and Usage Quiz5q
- Configuring Microsoft 365 Backup
- Configuring Microsoft 365 Backup Quiz5q
- Creating and Managing Users in Microsoft Entra ID
- Creating and Managing Users in Microsoft Entra ID Quiz5q
- Managing External Users and Guest Access
- Managing External Users and Guest Access Quiz5q
- Creating and Managing Contacts
- Creating and Managing Contacts Quiz5q
- Creating and Managing Microsoft 365 Groups
- Creating and Managing Microsoft 365 Groups Quiz5q
- Managing Shared Mailboxes
- Managing Shared Mailboxes Quiz5q
- Managing Microsoft 365 Licenses
- Managing Microsoft 365 Licenses Quiz5q
- Performing Bulk User Management with PowerShell
- Performing Bulk User Management with PowerShell Quiz5q
- Implementing Group-Based Licensing
- Implementing Group-Based Licensing Quiz5q
- Implementing Roles in Microsoft 365
- Implementing Roles in Microsoft 365 Quiz5q
- Managing Microsoft Entra ID Roles
- Managing Microsoft Entra ID Roles Quiz5q
- Managing Permissions for Microsoft Defender XDR
- Managing Permissions for Microsoft Defender XDR Quiz5q
- Managing Delegation with Administrative Units
- Managing Delegation with Administrative Units Quiz5q
- Managing Roles with Privileged Identity Management
- Managing Roles with Privileged Identity Management Quiz5q
- Managing Microsoft Purview Permissions
- Managing Microsoft Purview Permissions Quiz5q
- Preparing for Identity Synchronization
- Preparing for Identity Synchronization Quiz5q
- Using IdFix for Directory Cleanup
- Using IdFix for Directory Cleanup Quiz5q
- Implementing Microsoft Entra Connect Sync
- Implementing Microsoft Entra Connect Sync Quiz5q
- Implementing Microsoft Entra Cloud Sync
- Implementing Microsoft Entra Cloud Sync Quiz5q
- Monitoring with Microsoft Entra Connect Health
- Monitoring with Microsoft Entra Connect Health Quiz5q
- Troubleshooting Synchronization Issues
- Troubleshooting Synchronization Issues Quiz5q
- Implementing Authentication Methods
- Implementing Authentication Methods Quiz5q
- Implementing Self-Service Password Reset
- Implementing Self-Service Password Reset Quiz5q
- Implementing Microsoft Entra Password Protection
- Implementing Microsoft Entra Password Protection Quiz5q
- Investigating Authentication Issues
- Investigating Authentication Issues Quiz5q
- Configuring Passwordless Authentication
- Configuring Passwordless Authentication Quiz5q
- Planning for Identity Protection
- Planning for Identity Protection Quiz5q
- Implementing Microsoft Entra Identity Protection
- Implementing Microsoft Entra Identity Protection Quiz5q
- Planning Conditional Access Policies
- Planning Conditional Access Policies Quiz5q
- Implementing Conditional Access Policies
- Implementing Conditional Access Policies Quiz5q
- Implementing Multifactor Authentication
- Implementing Multifactor Authentication Quiz5q
- Configuring Named Locations
- Configuring Named Locations Quiz5q
- Understanding Microsoft Security Exposure Management
- Understanding Microsoft Security Exposure Management Quiz5q
- Managing Microsoft Secure Score
- Managing Microsoft Secure Score Quiz5q
- Reviewing and Responding to Incidents
- Reviewing and Responding to Incidents Quiz5q
- Using Advanced Hunting in Defender XDR
- Using Advanced Hunting in Defender XDR Quiz5q
- Reviewing Defender XDR Reports
- Reviewing Defender XDR Reports Quiz5q
- Using Microsoft Defender Threat Intelligence
- Using Microsoft Defender Threat Intelligence Quiz5q
- Configuring Custom Detection Rules
- Configuring Custom Detection Rules Quiz5q
- Implementing Threat Policies in Defender for Office 365
- Implementing Threat Policies in Defender for Office 365 Quiz5q
- Configuring Alert Policies
- Configuring Alert Policies Quiz5q
- Investigating Email and Collaboration Threats
- Investigating Email and Collaboration Threats Quiz5q
- Managing Attack Simulation Training
- Managing Attack Simulation Training Quiz5q
- Managing Restricted Entities
- Managing Restricted Entities Quiz5q
- Onboarding Devices to Defender for Endpoint
- Onboarding Devices to Defender for Endpoint Quiz5q
- Configuring Endpoint Settings
- Configuring Endpoint Settings Quiz5q
- Using Vulnerability Management Dashboard
- Using Vulnerability Management Dashboard Quiz5q
- Responding to Endpoint Vulnerabilities
- Responding to Endpoint Vulnerabilities Quiz5q
- Managing Automated Investigation and Remediation
- Managing Automated Investigation and Remediation Quiz5q
- Configuring App Connector for Microsoft 365
- Configuring App Connector for Microsoft 365 Quiz5q
- Configuring Cloud Apps Policies
- Configuring Cloud Apps Policies Quiz5q
- Interpreting Activity Logs
- Interpreting Activity Logs Quiz5q
- Configuring Cloud App Discovery
- Configuring Cloud App Discovery Quiz5q
- Responding to Cloud App Discovery Issues
- Responding to Cloud App Discovery Issues Quiz5q
- Implementing Sensitive Information Types
- Implementing Sensitive Information Types Quiz5q
- Using Keywords and Regular Expressions
- Using Keywords and Regular Expressions Quiz5q
- Implementing Retention Labels and Policies
- Implementing Retention Labels and Policies Quiz5q
- Implementing Sensitivity Labels and Policies
- Implementing Sensitivity Labels and Policies Quiz5q
- Monitoring Label Usage with Content Explorer
- Monitoring Label Usage with Content Explorer Quiz5q
- Using Activity Explorer and Label Reports
- Using Activity Explorer and Label Reports Quiz5q
- Configuring Auto-Labeling Policies
- Configuring Auto-Labeling Policies Quiz5q
- Configuring DLP Policies for Exchange Online
- Configuring DLP Policies for Exchange Online Quiz5q
- Configuring DLP for SharePoint and OneDrive
- Configuring DLP for SharePoint and OneDrive Quiz5q
- Configuring DLP for Teams and Power BI
- Configuring DLP for Teams and Power BI Quiz5q
- Configuring DLP for Microsoft 365 Copilot
- Configuring DLP for Microsoft 365 Copilot Quiz5q
- Configuring Endpoint DLP
- Configuring Endpoint DLP Quiz5q
- Reviewing DLP Alerts and Events
- Reviewing DLP Alerts and Events Quiz5q
- Responding to DLP Reports
- Responding to DLP Reports Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock MS-102 exam-style practice questions.
Practice for MS-102