แก้ไข

แชร์ผ่าน


Microsoft 365 group expiration policy

With the increase in usage of Microsoft 365 groups and Microsoft Teams, administrators and users need a way to clean up unused groups and teams. A Microsoft 365 groups expiration policy can help remove inactive groups from the system and make things cleaner.

When a group expires, almost all of its associated services (the mailbox, Planner, SharePoint site, team, etc.) are also deleted.

When a group expires it is "soft-deleted" which means it can still be recovered for up to 30 days.

Administrators can specify an expiration period and any inactive group that reaches the end of that period, and isn't renewed, will be deleted. (This includes archived teams.) The expiration period begins when the group is created, or on the date it was last renewed. Group owners will automatically be sent a notification before the expiration that allows them to renew the group for another expiration interval. Expiration notices for groups used in Teams appear in the Teams Owners feed.

Groups that are actively in use are renewed automatically around 35 days before the group expires. In this case, the owner doesn't get any renewal notifications. Any of the following actions will automatically renew a group:

  • SharePoint - View, edit, download, move, share, or upload files. (Viewing a SharePoint page doesn't count as an action for automatic renewal.)
  • Outlook - Join or edit group, read or write group message from the group, and like a message (Outlook on the web).
  • Teams - Visit a teams channel.
  • Viva Engage - View a post within a Viva Engage community or an interactive email in Outlook.
  • Forms - View, create, or edit forms, or submit a response to a form.

Important

When you change the expiration policy, the service recalculates the expiration date for each group. It always starts counting from the date when the group was created, and then applies the new expiration policy.

It's important to know that expiration is turned off by default. Administrators have to enable it for their organization if they want to use it.

Note

Configuring and using the expiration policy for Microsoft 365 groups requires you to possess but not necessarily assign Microsoft Entra ID P1 or P2 licenses for the members of all groups to which the expiration policy is applied. For more information, see Getting started with Microsoft Entra ID P1 or P2.

Who can configure and use the Microsoft 365 groups expiration policy?

Role What they can do
Office 365 global admin (in Azure, the Company administrator), User administrator Create, read, update, or delete the Microsoft 365 groups expiration policy settings.
Groups Administrator Members of this role can create/manage groups, create/manage groups settings like naming and expiration policies, and view groups activity and audit reports.
User Renew or restore a Microsoft 365 group that they own

Important

Microsoft recommends that you use roles with the fewest permissions. This helps improve security for your organization. Global Administrator is a highly privileged role that should be limited to emergency scenarios when you can't use an existing role.

How to set the expiration policy

As noted above, expiry is turned off by default. An administrator will have to enable the expiration policy and set the properties for it to take effect. To enable it, go to Microsoft Entra ID > Groups > Expiration. Here you can set the default group lifetime.

The group lifetime is specified in days and can be set to 180, 365 or to a custom value that you specify. The custom value has to be at least 30 days.

If the group doesn't have an owner, the expiration emails will go to the specified email.

You can set the policy for all of your groups, only selected groups (up to 500), or turn it off completely by selecting None. When You select None all groups which are active and pending for verification will have no expiration date. However, the groups that are already expired aren't impacted.

Note that currently you can't have different policies for different groups.

Screenshot of Groups expiration settings in Microsoft Entra ID.

How expiry works with the retention policy

If you have set up a retention policy for groups in the Microsoft Purview compliance portal, the expiration policy works seamlessly with retention policy. When a group expires, the group's mailbox conversations and files in the group site are retained in the retention container for the specific number of days defined in the retention policy. Users won't see the group, or its content, after expiration however.

How and when a group owner learns if their groups are going to expire

If the group was created via Planner, SharePoint, or any other app, the expiration notifications will always come via email. If the group was created via Teams, the group owner will receive an email and a notification to renew through the activity section. It's not recommended that you enable expiration on a group if your group owner doesn't have a valid email address.

30 days before the group expires, the group owners (or the email addresses that you specified for groups that don't have an owner) will receive an email allowing them to easily renew the group. If they don't renew it, they'll receive another renewal email 15 days before expiration. If they still haven't renewed it, they'll receive one more email notification the day before expiration.

If for some reason none of the owners or admins renew the group before it expires, the admin can still restore the group for up to 30 days after expiration. For details see: Restore a deleted Microsoft 365 group.

Archiving group contents

If you have a group that you no longer plan to use, but you want to retain its content, see Archive groups, teams, and Viva Engage for information about how to export information from the different groups services.

Collaboration governance planning recommendations

Create your collaboration governance plan

Overview of retention policies

Assign a new owner to an orphaned group

Configure Microsoft 365 groups expiration