Microsoft Purview for SharePoint: Retention, Labels, DLP and Audit
Microsoft Purview is Microsoft's data governance and compliance suite. For SharePoint in Microsoft 365 it supplies four controls that matter most to administrators: retention policies and retention labels that decide how long content is kept, sensitivity labels that classify and protect files and sites, data loss prevention (DLP) policies that stop sensitive content being shared, and the audit log that records who did what. All four are configured in the Microsoft Purview portal, not in the SharePoint admin center.
Published:
Last updated: 2026-12-02
What is Microsoft Purview?
Microsoft Purview is the name for Microsoft's compliance, information protection and data governance services. You manage it at purview.microsoft.com. It works across Exchange, SharePoint, OneDrive, Teams and other Microsoft 365 services, so one policy can cover a mailbox and a SharePoint site at the same time.
For a SharePoint administrator, the practical point is this: SharePoint decides who can open content, and Purview decides how content is classified, kept, protected and recorded. You need both. A file that is correctly labeled but shared with everyone is still overshared.
Which Microsoft Purview features apply to SharePoint?
| Purview feature | What it does in SharePoint | Typical question it answers | Detailed guide |
|---|---|---|---|
| Retention policies and retention labels (Data Lifecycle Management and Records Management) | Keeps content for a set period, deletes it afterwards, or both. Policies cover whole sites; labels cover individual files and folders. | "How do we keep contracts for seven years and then remove them?" | SharePoint retention policies and retention labels |
| Sensitivity labels (Information Protection) | Classifies files and can encrypt or mark them. Applied to a site, a label controls privacy, external sharing and access from unmanaged devices. | "How do we mark and protect confidential files and sites?" | SharePoint sensitivity labels |
| Data loss prevention (DLP) | Finds sensitive information in files and warns the user, blocks sharing, or restricts access. | "How do we stop files with card numbers being shared outside the company?" | SharePoint DLP |
| Audit | Records user and administrator activity such as file views, downloads, deletions, sharing and permission changes. | "Who opened or shared this file last month?" | SharePoint audit log |
| eDiscovery | Searches sites and mailboxes, places content on hold and exports it for an investigation or legal case. | "Which documents must be preserved for this dispute?" | This article, below |
How do retention policies and retention labels work in SharePoint?
A retention policy is assigned to whole SharePoint sites and applies the same keep or delete rule to everything inside them. A retention label is applied to an individual file, folder or library default, so different documents in one site can follow different rules. A file can have only one retention label at a time, and a label can also mark it as a record.
When someone edits or deletes a file that must be kept, SharePoint stores a copy in a hidden Preservation Hold library on the site. Users carry on working, and the retained copy stays available for compliance searches. Users see an error if they try to delete a library, list or site that is subject to retention. Read the full walkthrough in SharePoint retention policies and retention labels explained.
What do sensitivity labels do for SharePoint files and sites?
Sensitivity labels work at two levels. On a file, a label classifies the document and can add encryption and content markings such as a header or watermark. On a site, team or Microsoft 365 group, a label sets container controls: privacy, external user access, external sharing and access from unmanaged devices.
These two levels are independent. Microsoft documents that files stored in a labeled site do not inherit the site's label, so a "Confidential" site can still hold unlabeled files. See SharePoint sensitivity labels: files, sites and auto-labeling for setup steps and the PowerShell switch that enables labels for files in SharePoint and OneDrive.
How does Purview DLP protect SharePoint content?
A DLP policy scans files in the SharePoint sites you choose for sensitive information types (for example credit card or national ID numbers), sensitivity labels or retention labels. When a file matches, the policy can show the user a policy tip, block sharing with people outside the organization, or block everyone except the content owner, last modifier and site admin.
Microsoft recommends running a new policy in simulation mode first so you can see what it would match before it blocks anything. Details and a starter policy are in SharePoint DLP: how Purview data loss prevention works.
What does the Purview audit log record for SharePoint?
Purview Audit records SharePoint and OneDrive activity, including file views, downloads, edits, deletions, sharing links and permission changes. Audit (Standard) is on by default and keeps records for 180 days. Audit (Premium) keeps Exchange, SharePoint and Microsoft Entra ID records for one year by default and adds custom audit retention policies.
The audit log tells you what happened. It does not tell you who can open a file today. For search steps, PowerShell and export limits, read SharePoint audit log: who opened, shared or deleted a file?
What is Purview eDiscovery, and when do SharePoint admins meet it?
eDiscovery is the Purview tool for finding, holding and exporting content for investigations and legal cases. It covers SharePoint, OneDrive, Exchange, Teams, Microsoft 365 Groups and Viva Engage, and one search can include sites and mailboxes together. Premium eDiscovery features need Microsoft 365 E5 or a related add-on.
Two points matter for site administration:
- A site on an eDiscovery hold behaves like a site under retention: content that users delete is preserved, and the site cannot simply be deleted.
- The Recycle Bin is not indexed, so an eDiscovery search cannot find content that is only in the Recycle Bin. Holds need to be in place before content is deleted.
Which other Microsoft 365 services work alongside Purview?
| Service | What it adds for SharePoint governance |
|---|---|
| SharePoint admin center | Tenant and site sharing settings, storage, site lists, and where you apply a sensitivity label to an existing site. |
| SharePoint Advanced Management | Data access governance reports, restricted access control, Restricted Content Discovery and site lifecycle policies. Compare it with a reporting tool in SharePoint Advanced Management vs. Toolkit reporting. |
| Microsoft Entra Conditional Access | Multi-factor authentication and device rules. The sensitivity label settings for unmanaged devices and authentication contexts depend on Conditional Access being configured. |
| Microsoft 365 Copilot controls | Copilot only returns what a user can already open, so labels, DLP and permissions all shape what it surfaces. See Copilot oversharing in SharePoint. |
What does Microsoft Purview not cover in SharePoint?
Purview classifies, retains and records content. It is not a permissions reporting tool. It does not give you a file-by-file list of who can open each site, library, folder and document, which sharing links exist, or which permissions have drifted from what was intended. Those answers live in SharePoint permissions, not in Purview policies.
That gap is what a governance reporting tool fills:
- SharePoint Essentials Toolkit reports permissions, sharing links and external users across sites, shows the sensitivity label on every file in its file reports, and lists unlabeled files that are widely shared. From a report you can apply or remove sensitivity labels in bulk.
- Ranger365 (beta) monitors SharePoint Online continuously for oversharing, Anyone links, external users, ownership gaps and files without sensitivity labels, and records reviews and decisions in an audit history.
In what order should you roll out Purview for SharePoint?
- Confirm auditing is on and that the right people hold the Audit Logs or View-Only Audit Logs role. You want history before you change anything.
- Report current access. Find sites and files open to everyone, Anyone links and external users, and fix the obvious oversharing first. See find everything shared with everyone in SharePoint.
- Publish a small set of sensitivity labels (for example Public, General, Confidential, Highly Confidential) and enable labels for files in SharePoint and OneDrive.
- Label the sensitive sites so privacy, external sharing and unmanaged device rules are consistent.
- Add retention: a broad retention policy for baseline keeping, then retention labels for content with specific requirements.
- Run DLP in simulation mode, review the matches, then turn on policy tips and blocking.
- Review regularly. Re-run permissions, sharing and unlabeled-content reports on a schedule, and keep the evidence.
Does Microsoft Purview work with SharePoint Server?
Purview retention policies, retention labels, site sensitivity labels and SharePoint DLP are Microsoft 365 cloud features. SharePoint Server farms rely on their own information management policies and audit settings, with the Microsoft Purview Information Protection scanner available to discover and label files in on-premises SharePoint libraries and file shares. If you are planning a move, see migrating SharePoint on-premises to SharePoint Online.
Frequently asked questions
Is Microsoft Purview the same as the Microsoft 365 compliance center?
Microsoft Purview is the current name and portal for the compliance and information protection features that were previously found in the Microsoft 365 compliance center. Retention, sensitivity labels, DLP, Audit and eDiscovery are all managed from the Microsoft Purview portal.
Do I need Microsoft 365 E5 to use Purview with SharePoint?
Not for everything. Audit (Standard) is enabled by default, and many retention, labeling and DLP features are available below E5. Audit (Premium), premium eDiscovery and automatic labeling need E5-level licensing. Check Microsoft's Microsoft Purview service description for your plan.
Does a sensitivity label on a site protect the files inside it?
No. A site label controls the container: privacy, external access, sharing and device rules. Files in the site do not inherit the label, its encryption or its markings. Label files separately, manually, by default or with auto-labeling.
Does Purview show who has access to a SharePoint file?
No. Purview Audit shows activity that has already happened. To see who can open a site, folder or file today, you need a SharePoint permissions report.
Can retention and deletion rules conflict?
Yes, and Microsoft resolves conflicts with four published principles. Retention wins over deletion, the longest retention period wins, explicit settings win over implicit ones for deletion, and finally the shortest deletion period wins.
Microsoft sources
- Learn about retention policies and retention labels
- Use sensitivity labels to protect content in Microsoft Teams, Microsoft 365 groups, and SharePoint sites
- Learn about data loss prevention
- Auditing solutions in Microsoft Purview
- Microsoft Purview eDiscovery solutions
See who can open your SharePoint content, free
Purview protects and records content. SharePoint Essentials Toolkit Community Edition shows who can reach it: permissions, sharing links, external users and unlabeled widely shared files, free on up to 20 sites per Microsoft 365 tenant. Get your free Community Edition license key.