As of October 2026
File-level archiving in Microsoft 365 Archive is new and requires pay-as-you-go billing. Licensing details change often. Check them against the linked Microsoft sources before you implement anything.
A typical tenant after a few years of Teams: far more teams than active projects, often a fair share of them without an owner, plus communication sites nobody maintains anymore. Outdated content shows up in search results and Copilot answers, nobody keeps an eye on ownerless groups, and storage costs money.
Microsoft 365 now has quite a few lifecycle tools. The catch is that they come from different places (Entra ID, the Microsoft 365 admin center, SharePoint Advanced Management, Purview) and don't line up on their own. This post from my series Governance in Microsoft 365 sorts them out and suggests a baseline setup.
A lifecycle model
Most tenants have a beginning (someone creates a team) and sometimes an end (someone deletes it). What's missing is the review in the middle. That's what the following tools are for.
The tools side by side
Tool | Where | Applies to | What happens | License |
|---|---|---|---|---|
Group expiration policy | Entra admin center | Microsoft 365 groups (all or selected, max. 500) | Owners notified 30, 15 and 1 day before; active groups renew automatically; otherwise the group is deleted | Entra ID P1 for members of affected groups (owned, not necessarily assigned) |
Ownerless groups policy | Microsoft 365 admin center | Microsoft 365 groups without an owner (all or up to 50 selected) | Emails active members asking them to become owners; up to 2 can accept; no further action otherwise | Eligible M365 plans (including E3, E5, Business Premium); restricting via security group needs Entra P1/P2 |
Site ownership policy | SharePoint admin center (SAM) | Sites | Checks minimum number of owners/admins, notifies | SAM (for example via an assigned Copilot license) |
Inactive site policy | SharePoint admin center (SAM) | Sites, including group-connected sites | Monthly notifications; after three: do nothing, read-only, or read-only then archive | SAM |
Site attestation policy | SharePoint admin center (SAM) | Sites | Owners regularly confirm purpose, owners, members, permissions; if not, same actions as above | SAM |
Microsoft 365 Archive | Microsoft 365 / SharePoint admin center | Sites and (new) individual files | Moves content to cold storage; inaccessible until reactivated, not used by Copilot | Pay-as-you-go, only charged when active plus archived storage exceeds your quota |
Three details from the docs that are easy to miss:
- The group expiration policy renews groups automatically when there's activity: viewing or editing files in SharePoint, reading or writing group mail in Outlook, visiting a Teams channel, viewing posts in Viva Engage. When you first turn it on, groups older than the lifetime get 35 days until expiry. Custom lifetimes must be at least 30 days. Notifications for ownerless groups go to an alternate address you specify.
- Archived teams still expire. A team archived in Teams is just read-only. The expiration policy keeps applying, and without renewal the group gets deleted along with its team, site, mailbox and Planner.
- The SAM policies never delete. The strongest action is archiving through Microsoft 365 Archive, and that requires Archive to be enabled in the tenant.
# Requires: Microsoft.Graph.Groups, Microsoft.Graph.Identity.SignIns
# Delegated only; role: Groups Administrator (or Exchange Administrator for the ownerless policy)
Connect-MgGraph -Scopes 'Directory.ReadWrite.All', 'Group.ReadWrite.All'
# Group expiration: 365 days, notifications for ownerless groups to a shared address
New-MgGroupLifecyclePolicy -GroupLifetimeInDays 365 -ManagedGroupTypes 'All' `
-AlternateNotificationEmails 'm365-governance@contoso.com'
# Ownerless groups: ask up to 5 active members for 4 weeks (empty enabledGroupIds = all groups)
# The API replaces the whole configuration, so always send every required property
Update-MgPolicyOwnerlessGroupPolicy -BodyParameter @{
isEnabled = $true
notificationDurationInWeeks = 4
maxMembersToNotify = 5
enabledGroupIds = @()
policyWebUrl = 'https://contoso.sharepoint.com/sites/governance/ownership'
emailInfo = @{
senderEmailAddress = 'm365-governance@contoso.com'
subject = 'Your group $Group.Name needs an owner'
body = 'Hi $User.DisplayName, the group $Group.Name has no owner. Please consider taking ownership.'
}
}
# How many Microsoft 365 groups currently have no owner?
Get-MgGroup -Filter "groupTypes/any(g:g eq 'Unified')" -All -Property Id, DisplayName -ExpandProperty Owners |
Where-Object { -not $_.Owners } |
Select-Object Id, DisplayNameYou can also set up the ownerless policy in the admin center. Through Graph it's delegated only, and unlike the portal the API doesn't fill in defaults: every call replaces the entire configuration.
Pitfalls
Confusing deletion with archiving. The group expiration policy deletes. The SAM policies archive or set sites to read-only. If you run both, know which one hits a given site first. A group-connected site that the inactive site policy just set to read-only can still be deleted by the expiration policy if nobody renews the group. So I'd pick one: for Microsoft 365 groups, either expiration with deletion or SAM with archiving as the leading tool, not both without coordination.
Different definitions of activity. The expiration policy and the inactive site policy measure activity differently. The inactive site policy, for example, counts email received in the group mailbox but ignores access through app tokens and scripts (PnP PowerShell explicitly doesn't count). A team can be active for one policy and inactive for the other.
Overlapping policies of the same type. If a site falls under several inactive site policies, SharePoint suppresses duplicate emails for 30 days. Which action applies when then becomes hard to follow. Microsoft recommends that scopes of the same policy type don't overlap.
Sites without a group. Communication sites and classic sites aren't connected to a Microsoft 365 group. Neither group expiration nor the ownerless policy covers them; only SAM does. Private and shared channels, OneDrive, root and home sites are excluded from the inactive site policy.
Retention. A retention policy for the "Microsoft 365 Group mailboxes & sites" location protects content even when the group is deleted. The site is preserved and stays under the policy. The group mailbox becomes an inactive mailbox. For users the group is gone, but the content can still be found through eDiscovery. If the group mailbox is on legal hold, it's kept after deletion, while Planner, site and Teams data are permanently removed after 30 days unless retention protects them. Get your retention policies in place before you automate any deletion.
Microsoft 365 Archive is neither deletion nor backup. Archived sites stay under retention and legal hold and remain discoverable in eDiscovery. They no longer count against active quota, but only admins can reactivate them. The new file-level archiving is on by default once Archive is enabled and can be turned off per tenant or per site with PowerShell. Archived files still count toward site storage.
A baseline setup to start from
Here's the order I'd consider a sensible start. Concrete durations follow below as starting values. They depend heavily on industry, retention obligations and ways of working, and should be revisited after the first simulation run.
- Retention first. Set up retention policies for group mailboxes, sites and Teams messages before anything gets deleted automatically.
- Turn on the ownerless groups policy. Cheap, works immediately, and cuts down the number of groups nobody looks after.
- Site ownership policy with at least two owners, in simulation mode first.
- Inactive site policy in simulation mode, review the report, then switch to active: three notifications, then read-only, then archive after a defined period.
- Enable Microsoft 365 Archive before the inactive site policy is supposed to archive anything. Set up pay-as-you-go billing and decide whether users may archive individual files.
- Group expiration policy only after that, and only if you've consciously decided to delete. With an alternate address for ownerless groups, and for selected groups first.
- Site attestation for sites with sensitive content, for example yearly.
Reasonable starting values for a first run: group expiration after 365 days, as in the script above. The inactive site policy picks up sites after six months without activity, sends three monthly notifications and then sets the site to read-only. If archiving follows, a read-only period of six months works well (3, 6, 9 or 12 months are possible), so owners still have time to respond after the emails. Site attestation once a year for sites with sensitive content.
You can customize the SAM policy emails with your own sender, text and a link to an internal policy. That requires a custom sender domain configured in the Microsoft 365 admin center. Without it, the emails come from noreply@sharepoint.com, and plenty of owners will treat them as spam.
Less stale content, better Copilot answers
Copilot draws on everything the user is allowed to see. A project plan from 2021 carries the same weight for Copilot as today's, as long as it isn't archived or deleted. According to Microsoft, Copilot doesn't use archived content. A working lifecycle doesn't just cut storage costs and risk; it also improves the quality of the answers. My post on oversharing before a Copilot rollout describes a four-step approach. Lifecycle policies are the "operate" part of that, so the cleanup doesn't start from scratch a year later.
My takeaway: start with ownership, not deletion. A team with two active owners usually handles its own lifecycle. The policies are there for everything else, and they should only run once retention and archiving are in place.
References
- Configure the expiration policy for Microsoft 365 groups (Microsoft Learn)
- Manage ownerless Microsoft 365 groups and teams (Microsoft Learn)
- ownerlessGroupPolicy resource type (Microsoft Learn)
- Overview of SharePoint site lifecycle management policies (Microsoft Learn)
- Manage inactive sites by using inactive site policies (Microsoft Learn)
- Plan for governance in Teams (Microsoft Learn)
- Overview of Microsoft 365 Archive and Frequently asked questions about Microsoft 365 Archive (Microsoft Learn)
- Pay-as-you-go pricing: storage services (Microsoft Learn)
- Common settings for retention policies: locations (Microsoft Learn)
- Inactive SPO sites and groups remediation (vladilen.com)
