OneDrive 保留和删除OneDrive retention and deletion

本文介绍了在删除组织的用户的 Microsoft 365 帐户时如何管理用户的 OneDrive,以及自动执行的步骤。This article describes how you can manage a user's OneDrive when you delete the user's Microsoft 365 account for your organization, and what steps happen automatically.

从 Microsoft 365 管理中心删除用户Deleting a user from the Microsoft 365 admin center

从 Microsoft 365 管理中心的"活动用户"页面删除用户时,可以选择想要使用用户的产品许可证、电子邮件和 OneDrive 执行哪些操作。When you delete a user from the Active users page in the Microsoft 365 admin center, you can choose what you want to do with the user's product licenses, email, and OneDrive. 有关详细信息,请参阅从组织中删除用户For more info, see Delete a user from your organization.

用于从 Microsoft 365 管理中心删除用户的面板

如果你向另一个用户授予对 OneDrive 的访问权限,则默认情况下该用户将有 30 天的时间来访问和下载要保留的文件。If you give another user access to the OneDrive, that user will have 30 days by default to access and download the files they want to keep. (若要更改保留时间,请参阅为已删除的用户设置 OneDrive 保留期。)他们将收到一封电子邮件,其中包含有关访问已删除用户的 OneDrive 的说明链接:从其他用户的 OneDrive 复制文件(To change the retention time, see Set the OneDrive retention for deleted users.) They'll receive an email with a link to these instructions for accessing the deleted user's OneDrive: Copy files from another user's OneDrive.

配置自动访问权限委派Configure automatic access delegation

默认情况下,删除用户时,将自动向用户的经理提供访问用户的 OneDrive 的访问权限。By default, when a user is deleted, the user's manager is automatically given access to the user's OneDrive. 按照以下步骤确认为您的组织启用了此自动访问委派,并设置第二所有者,以防用户没有指定的经理。Follow these steps to confirm that this automatic access delegation is enabled for your organization, and to set a secondary owner in case a user doesn't have a specified manager. 如果禁用了访问委派,或者未为用户设置经理或第二所有者,则当用户被删除或警告 OneDrive 将被删除时,将没有人能够自动访问。If access delegation is disabled or a manager or secondary owner isn't set for a user, no one will have automatic access when the user is deleted or be warned that the OneDrive will be deleted.

  1. 转到新的 SharePoint 管理中心的“更多功能”页面,然后使用在组织中具有管理员权限的帐户进行登录。Go to the More features page of the new SharePoint admin center, and sign in with an account that has admin permissions for your organization.

    备注

    如果使用的是 Office 365 Germany,请登录 Microsoft 365 管理中心,然后浏览到 SharePoint 管理中心并打开“更多功能”页面。 If you have Office 365 Germany, sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the More features page.
    如果使用的是由世纪互联(中国)运营的 Office 365,请登录 Microsoft 365 管理中心,然后浏览到 SharePoint 管理中心并打开“更多功能”页面。If you have Office 365 operated by 21Vianet (China), sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the More features page.

  2. 用户配置文件下,选择"打开"。Under User profiles, select Open.

  3. 在“我的网站设置”下,选择“设置我的网站”。Under My Site Settings, select Setup My Sites.

  4. 在“我的网站清理”旁边,确保已选择“启用访问权限委派”。Next to My Site Cleanup, make sure Enable access delegation is selected.

  5. 我们还建议你在“我的网站清理”部分指定第二所有者帐户。We recommend that you also specify a secondary owner account in the My Site Cleanup section. 如果未在 Azure AD 中设置用户的经理,则此帐户将成为 OneDrive 的指定所有者。This account will be the appointed owner of the OneDrive if the user's manager isn't set in Azure AD. 在填充值时,还会将电子邮件通知发送到第二所有者帐户。Email notifications will also be sent to the secondary owner account when the value is populated.

  6. 选择“确定”。Select OK.

OneDrive 删除过程The OneDrive deletion process

  1. 从 Microsoft 365 管理中心删除用户,或通过 Active Directory 同步功能删除用户。A user is deleted from the Microsoft 365 admin center or is removed through Active Directory synchronization.

  2. 帐户删除将同步到 SharePoint。The account deletion is synchronized to SharePoint.

  3. OneDrive 清理作业运行,并且 OneDrive 标记为删除。The OneDrive Clean Up Job runs, and the OneDrive is marked for deletion. 已删除的用户将在 Microsoft 365 管理中心显示 30 天。The deleted user will appear in the Microsoft 365 admin center for 30 days. OneDrive 的默认保留期也是 30 天,但可以在 OneDrive 管理中心更改此保留期 (请参阅设置已删除用户的OneDrive保留期) 或通过使用 PowerShell cmdlet。 SetSPOTenant -OrphanedPersonalSitesRetentionPeriod <int32>The default retention period for OneDrive is also 30 days, but you can change this in the OneDrive admin center (see Set the OneDrive retention for deleted users) or by using the PowerShell cmdlet SetSPOTenant -OrphanedPersonalSitesRetentionPeriod <int32>. 有关使用此 cmdlet 的详细信息,请参阅 Set-SPOTenantFor more information about using this cmdlet, see Set-SPOTenant.

  4. 如果为已删除的用户指定了经理,经理将收到一封电子邮件,告知他们有权访问 OneDrive,并且 OneDrive 将在保留期结束时删除。If a manager is specified for the deleted user, the manager will receive an email telling them they have access to the OneDrive, and that the OneDrive will be deleted at the end of the retention period. 有关在 Azure Active Directory 管理中心中指定用户的经理的信息,请参阅添加或更新 用户配置文件信息For info about specifying a user's manager in the Azure Active Directory admin center, see Add or update a user's profile information.

    如果没有为用户帐户指定经理,但在 SharePoint 管理中心输入了第二所有者,则第二所有者将收到一封电子邮件,告知他们有权访问 OneDrive,并且 OneDrive 将在保留期结束后被删除。If a manager isn't specified for the user account, but a secondary owner was entered in the SharePoint admin center, the secondary owner will receive an email telling them they have access to the OneDrive, and that the OneDrive will be deleted at the end of the retention period.

  5. 在保留期到期前七天,将向经理或第二所有者发送第二封电子邮件,提醒他们将在七天后删除 OneDrive。Seven days before the retention period expires, a second email will be sent to the manager or secondary owner as a reminder that the OneDrive will be deleted in seven days.

  6. 七天后,已删除用户的 OneDrive 将移动到网站集回收站,将保留 93 天。After seven days, the OneDrive for the deleted user is moved to the site collection recycle bin, where it is kept for 93 days. 在此期间,用户将无法再访问 OneDrive 中的任何共享内容。During this time, users will no longer be able to access any shared content in the OneDrive. 若要还原 OneDrive,需要使用 PowerShell。To restore the OneDrive, you need to use PowerShell. 有关信息,请参阅还原已删除的 OneDriveFor info, see Restore a deleted OneDrive.

    备注

    回收站未编入索引,因此通过搜索不能找到回收站中的内容。The Recycle Bin is not indexed and therefore searches do not find content there. 这意味着电子数据展示保留无法在回收站中找到任何内容,从而无法保留内容。This means that an eDiscovery hold can't locate any content in the Recycle Bin in order to hold it.

    OneDrive 删除的 OneDrive 时间线

备注

保留策略始终优先于标准 OneDrive 删除过程,因此策略中包含的内容可在 30 天之前删除,保留时间也可以超过 OneDrive 保留期。Retention policies always take precedence to the standard OneDrive deletion process, so content included in a policy could be deleted before 30 days or retained for longer than the OneDrive retention. 有关详细信息,请参阅保留策略概述For more info, see Overview of retention policies. 同样,如果 OneDrive 作为电子数据展示事例的一部分挂起,则管理员和第二所有者将收到有关挂起删除的电子邮件,但在删除挂起之前不会删除 OneDrive。Likewise, if a OneDrive is put on hold as part of an eDiscovery case, managers and secondary owners will be sent email about the pending deletion, but the OneDrive won't be deleted until the hold is removed.
从 Azure Active Directory 中删除用户帐户时,OneDrive 清理的保留期将开始。The retention period for cleanup of OneDrive begins when a user account is deleted from Azure Active Directory. 任何其他操作都不会导致清理过程发生,包括阻止用户登录或删除用户的许可证。No other action will cause the cleanup process to occur, including blocking the user from signing in or removing the user's license. 有关删除用户许可证的信息,请参阅从 Microsoft 365 商业版中删除用户的许可证For info about removing a user's license, see Remove licenses from users in Microsoft 365 for business.