将 Azure Active Directory 中的 Microsoft 365 组设置为过期Quickstart: Set Microsoft 365 groups to expire in Azure Active Directory

本快速入门介绍如何设置 Microsoft 365 组的过期策略。In this quickstart, you set the expiration policy for your Microsoft 365 groups. 当用户可以设置自己的组时,未使用的组可能会成倍增加。When users can set up their own groups, unused groups can multiply. 若要管理未使用的组,一种方式是将这些组设置为过期,以便减少手动删除组的维护工作量。One way to manage unused groups is to set those groups to expire, to reduce the maintenance of manually deleting groups.

过期策略很简单:Expiration policy is simple:

  • 具有用户活动的组在快要过期时自动续订Groups with user activities are automatically renewed as the expiration nears
  • 系统通知组所有者续订要过期的组Group owners are notified to renew an expiring group
  • 未续订的组会被删除A group that is not renewed is deleted
  • 已删除的 Microsoft 365 组可以由组所有者或 Azure AD 管理员在 30 天内还原A deleted Microsoft 365 group can be restored within 30 days by a group owner or by an Azure AD administrator

备注

现在,组使用 Azure AD 智能,根据是否在最近使用而自动续订。Groups now use Azure AD intelligence to automatically renewed based on whether they have been in recent use. 此续订决策基于 Microsoft 365 服务(如 Outlook、SharePoint、Teams、Yammer 等)中组的用户活动。This renewal decision is based on user activity in groups across Microsoft 365 services like Outlook, SharePoint, Teams, Yammer, and others.

如果没有 Azure 订阅,可在开始前创建一个试用帐户If you don't have an Azure subscription, create a Trial before you begin.

先决条件Prerequisite

设置组过期所需的最低特权角色是组织的用户管理员。The least-privileged role required to set up group expiration is User administrator in the organization.

为组启用创建用户的功能Turn on user creation for groups

  1. 使用用户管理员帐户登录到 Azure 门户Sign in to the Azure portal with a User administrator account.

  2. 依次选择“组”、“常规”。Select Groups , and then select General.

    自助组设置页

  3. 将“用户可创建 Microsoft 365 组”设置为“是”。Set Users can create Microsoft 365 groups to Yes.

  4. 设置完成后,选择“保存”以保存组设置。Select Save to save the groups settings when you're done.

设置组过期Set group expiration

  1. 登录到 Azure 门户,选择“Azure Active Directory” > “组” > “过期”打开过期设置。Sign in to the Azure portal, select Azure Active Directory > Groups > Expiration to open the expiration settings.

    组过期设置页

  2. 设置过期时间间隔。Set the expiration interval. 选择一个预设值,或者输入一个超过 31 天的自定义值。Select a preset value or enter a custom value over 31 days.

  3. 提供当组没有所有者时用于发送过期通知的电子邮件地址。Provide an email address where expiration notifications should be sent when a group has no owner.

  4. 在本快速入门中,请将“为这些 Microsoft 365 组启用到期功能”设置为“所有”。For this quickstart, set Enable expiration for these Microsoft 365 groups to All.

  5. 设置完成后,选择“保存”来保存过期设置。Select Save to save the expiration settings when you're done.

就这么简单!That's it! 在本快速入门中,你已成功设置所选 Microsoft 365 组的过期策略。In this quickstart, you successfully set the expiration policy for the selected Microsoft 365 groups.

清理资源Clean up resources

删除过期策略To remove the expiration policy

  1. 确保已使用 Azure AD 组织的全局管理员帐户登录到 Azure 门户Ensure that you are signed in to the Azure portal with an account that is the Global Administrator for your Azure AD organization.
  2. 选择“Azure Active Directory” > “组” > “过期”。Select Azure Active Directory > Groups > Expiration.
  3. 将“为这些 Microsoft 365 组启用到期功能”设置为“无”。Set Enable expiration for these Microsoft 365 groups to None.

为组禁用创建用户的功能To turn off user creation for groups

  1. 选择“Azure Active Directory” > “组” > “常规”。Select Azure Active Directory > Groups > General.
  2. 将“用户可以在 Azure 门户中创建 Microsoft 365 组”设置为“否”。Set Users can create Microsoft 365 groups in Azure portals to No.