从组织删除用户Delete a user from your organization

想要了解如何删除你在工作或学校中使用的 自己 的 Microsoft 365 用户帐户?请与你的工作或大学的技术支持部门联系,为你执行这些步骤。Looking for how to delete your own Microsoft 365 user account that you use at work or school? Contact the technical support at your work or university to do these steps for you.

删除用户需知事项What you need to know about deleting users

  • 只有对企业或学校拥有 Microsoft 365 全局管理员 或用户管理权限的用户才能删除用户帐户。Only people who have Microsoft 365 global admin or User management permissions for the business or school can delete user accounts.
  • 永久删除用户数据前 30 天内可还原帐户。You have 30 days to restore the account before the user's data is permanently deleted.
  • 若要保留用户的 OneDrive 数据,请将其移动到其他位置。If you want to keep the user's OneDrive data, move it to a different location. 您甚至可以在删除帐户后的30天内移动数据。You can even move the data up to 30 days after deleting the account. 请参阅访问并备份以往用户的数据See Get access to and back up a former user's data. 无需移动其 SharePoint 文件;仍将有权访问它们。You don't need to move their SharePoint files; you'll still have access to them.
  • 若要保留用户的电子邮件,请在删除帐户 之前 ,将电子邮件移动到其他位置。如果已删除该帐户:如果删除时间未超过 30 天,可恢复该帐户,然后移动电子邮件数据,最后删除该帐户。请参阅 访问并备份以往用户的数据If you want to keep the user's email, BEFORE you delete the account, move the email to a different location. If you've already deleted the account: if it's been less than 30 days you can restore it, then move the email data, then delete the account. See Get access to and back up a former user's data.
  • 如果你有一个企业订阅(如 Office 365 企业版 E3),则可以通过将已删除的用户帐户转换为 非活动邮箱来保留该帐户的邮箱数据。If you have an Enterprise subscription like Office 365 Enterprise E3, you can preserve the mailbox data of a deleted user account by turning it into an inactive mailbox. 若要了解详细信息,请参阅 管理 Exchange Online 中的非活动邮箱To learn more, see Manage inactive mailboxes in Exchange Online.

全局管理员:删除用户,停止为其许可证付款,并选择要对其电子邮件和 OneDrive 内容执行的操作Global admin: Delete a user, stop paying for their license, and choose what to do with their email and OneDrive content

如果您是全局管理员,则在删除用户时,还可以向其他用户授予对其电子邮件的访问权限,并选择要对其 OneDrive 内容执行的操作。If you are a global administrator, when you delete a user you can also give another user access to their email, and choose what to do with their OneDrive content.

要考虑的事项...Things to consider...

在开始之前,请考虑要对用户的电子邮件和 OneDrive 内容执行的操作,以及是否要保留许可证或停止付款。Before you begin, think about what you want to do with the user's email and OneDrive content, and whether you want to keep the license or stop paying for it.

ItemItem 说明Description
产品许可证Product licenses
您可以从用户中删除该许可证并将其从订阅中删除,以停止对该许可证付款。You can remove the license from the user and remove it from your subscriptions to stop paying for that license. 如果选择此选项,将从你的订阅中自动删除许可证。If you select this option, the license will be removed automatically from your subscriptions.

如果许可证是通过合作伙伴或批量许可购买的,则无法删除许可证You can't remove the license if you bought it through a Partner or volume licensing. 如果你正在支付年度计划,或者你正在付费周期中间,你将无法从订阅中删除许可证,直到你的承诺完成。If you're paying for an annual plan or if you're in the middle of a billing cycle, you won't be able to remove the license from your subscription until your commitment is completed.
OneDrive 内容OneDrive content
如果用户将文件保存到 OneDrive,则可以向其他用户授予对这些文件的访问权限。If the user saved their files to OneDrive, you can give another user access to these files.

您需要将您想要保留的文件移到为 OneDrive 文件设置的保留期内。You'll need to move the files you want to keep within the retention period that is set for OneDrive files. 默认情况下,保留期为30天。By default, the retention period is 30 days. 如果您在删除用户后不在保留期内移动文件,则 OneDrive 内容将被永久删除。If you don't move the files within the retention period after deleting the user, the OneDrive content will be permanently deleted. 若要增加您为已删除帐户保留的 OneDrive 文件的天数,请参阅 设置已删除用户的 onedrive 保留值。To increase the number of days that you retain OneDrive files for deleted accounts, see Set the OneDrive retention for deleted users.

重要说明!Important! 如果已删除的用户使用个人计算机从 SharePoint 和 OneDrive 下载文件,则无法擦除它们存储在计算机上的文件。If the deleted user used a personal computer to download files from SharePoint and OneDrive, there's no way for you to wipe those files they stored on their computer. 他们将继续拥有从 OneDrive 中同步的任何文件的访问权限。They will continue to have access to any files that were synced from OneDrive.
电子邮件Email
授予另一个用户对已删除用户的电子邮件的访问权限会将已删除用户的邮箱转换为共享邮箱。Giving another user access to the deleted user's email will convert the deleted user's mailbox to a shared mailbox. 然后,新邮箱所有者可以访问邮箱并监视新电子邮件。The new mailbox owner can then access the mailbox and monitor for new email. 此外,还将提供以下选项:You'll also have the following options:

更改显示名称-建议您更改显示名称,以便在 活动用户 列表中识别共享邮箱。Change the display name - We recommend changing the display name so that it will be easy to identify the shared mailbox in the Active users list.
打开自动答复-我们已经为你编写了礼貌的自动答复。Turn on automatic replies - We've already written a polite automatic reply for you. 您可以向组织中的人员和组织外部的人员发送不同的自动答复。You can send different automatic replies to people within your organization and people from outside your organization.

清除别名-别名是用户的其他电子邮件地址。Clean up aliases - Aliases are additional email addresses for users. 有些组织不使用它们,因此,如果你没有任何人,则无需在此处执行任何其他操作。Some organizations don't use them, so if you don't have any you don't need to do anything else here. 如果用户的确有别名,我们建议将其删除,以便可以重用这些电子邮件地址。If the user does have aliases, we recommend removing them so that you can reuse those email addresses. 否则,将无法重用这些电子邮件地址,直到已删除邮箱的保留期通过。Otherwise, you can't reuse those email addresses until the retention period for deleted mailboxes has passed. 默认情况下,已删除的邮箱可恢复30天。By default, a deleted mailbox is recoverable for 30 days. 有关详细信息,请参阅 Delete or restore user 邮箱 In Exchange OnlineFor more information, see Delete or restore user mailboxes in Exchange Online.
Active DirectoryActive Directory
如果你的公司使用与 Azure AD 同步的 Active Directory ,则需要从 Active Directory 中删除用户帐户。If your business uses Active Directory that is synchronizing with Azure AD, you need to delete the user account from Active Directory. 无法通过 Office 365 删除帐户。You can't do it through Office 365. 有关说明,请参阅 删除用户帐户For instructions, see Delete a User Account.

入门Get started

由于引导式体验会逐步完成删除用户的步骤,下面介绍了如何入门。Since the guided experience walks through the steps to delete a user, here's how to get started.

  1. 在管理中心,转到“用户”>“活动用户”页面。In the admin center, go to the Users > Active users page.
  1. 在管理中心,转到“用户”>“活动用户”页面。In the admin center, go to the Users > Active users page.
  1. 在管理中心,转到“用户”>“活动用户”页面。In the admin center, go to the Users > Active users page.
  1. 选择要删除的用户,然后选择 " 删除用户"。Select the user that you want to delete, and then select Delete user.

用户管理管理员:从 Office 365 中删除一个或多个用户User management admin: Delete one or more users from Office 365

重要

如果已将用户的帐户 转换为共享邮箱 ,或者如果已在该帐户上设置了电子邮件转发,则不要删除该帐户。Don't delete a user's account if you've converted it to a shared mailbox or if you've set up email forwarding on the account. 这些函数仍需要帐户。Those functions still need the account. 共享邮箱不需要许可证。A shared mailbox doesn't require a license. 如果已将帐户转换为共享邮箱,您可以 停止支付许可证If you've converted the account to a shared mailbox you can Stop paying for the license. 如果已在帐户上设置了电子邮件转发,则无法删除该许可证。If you've set up email forwarding on the account, you can't remove the license. 执行此操作将停止电子邮件转发并停用邮箱。Doing so will stop email forwarding and deactivate the mailbox.

  1. 在管理中心,转到“用户”>“活动用户”页面。In the admin center, go to the Users > Active users page.

  2. 选择要删除的用户的名称,选择 " 更多选项 " (") ",然后选择 " 删除用户"。Select the names of the users that you want to delete, select More options (...), and then choose Delete user.

    虽然你删除了用户帐户,但你 仍在支付许可证费用Although you deleted the user's account, you're still paying for the license. 请参阅下一个过程以停止付款许可证。See the next procedure to stop paying for the license. 或者,可以将许可证分配给其他用户。Or, you can assign the license to another user. 不会自动将其分配给某人。It won't be assigned to someone automatically.

  1. 在管理中心,转到“用户”>“活动用户”页面。In the admin center, go to the Users > Active users page.

  2. 选择要删除的用户的名称,然后在 " 批量操作 " 窗格中选择 " 删除用户"。Select the names of the users that you want to delete, and in the Bulk actions pane, choose Delete users.

    虽然你删除了用户帐户,但你 仍在支付许可证费用Although you deleted the user's account, you're still paying for the license. 请参阅下一个过程以停止付款许可证。See the next procedure to stop paying for the license. 或者,可以将许可证分配给其他用户。Or, you can assign the license to another user. 不会自动将其分配给某人。It won't be assigned to someone automatically.

  1. 在管理中心,转到“用户”>“活动用户”页面。In the admin center, go to the Users > Active users page.

  2. 选择要删除的用户的名称,然后在 " 批量操作 " 窗格中选择 " 删除用户"。Select the names of the users that you want to delete, and in the Bulk actions pane, choose Delete users.

    虽然你删除了用户帐户,但你 仍在支付许可证费用Although you deleted the user's account, you're still paying for the license. 请参阅下一个过程以停止付款许可证。See the next procedure to stop paying for the license. 或者,可以将许可证分配给其他用户。Or, you can assign the license to another user. 不会自动将其分配给某人。It won't be assigned to someone automatically.

停止支付许可证费用Stop paying for the license

减少许可证的数量是一个单独的步骤,仅可由全局管理员或帐单管理员执行。Reducing the number of licenses is a separate step that can only be performed by the global admin or billing admin.

  1. 在管理中心中,转到“计费”>“你的产品”页面。In the admin center, go to the Billing > Your products page. 如果看不到此选项,则不是全局管理员或帐单管理员,无法执行此步骤。If you don't see this option, you aren't a global admin or billing admin, and can't do this step.

  2. 在 " 产品 " 选项卡上,选择要删除其许可证的订阅。On the Products tab, select the subscription that you want to remove licenses for.

  3. 在 "订阅详细信息" 页上,选择 " 删除许可证"。On the subscription details page, select Remove licenses.

  4. 在 " 删除许可证 " 窗格中,在 " 新数量" 下的 " 许可证总数 " 框中,输入此订阅所需的许可证总数。In the Remove licenses pane, under New quantity, in the Total licenses box, enter the total number of licenses that you want for this subscription. 例如,如果你有100个许可证,并且想要删除其中5个,请输入95。For example, if you have 100 licenses and you want to remove five of them, enter 95.

  5. 选择 “保存”Select Save.

稍后当您完成将其他人添加到您的企业的步骤时,系统将提示您同时购买许可证,只需一步即可!Later when you go through the steps to add another person to your business, you'll be prompted to buy a license at the same time, with just one step!

  1. 在管理中心,转到“计费”>“订阅”页面。In the admin center, go to the Billing > Subscriptions page. 如果看不到此选项,则不是全局管理员或帐单管理员,无法执行此步骤。If you don't see this option, you aren't a global admin or billing admin, and can't do this step.

  2. 如果您有多个) ,请选择 "订阅 (",然后选择 " 添加/删除许可证 " 以删除许可证,以便在您雇用其他人之前不支付。Select the subscription (if you have more than one) and then select Add/Remove licenses to delete the license so you don't pay for it until you hire another person.

    稍后当您完成将其他人添加到您的企业的步骤时,系统将提示您同时购买许可证,只需一步即可!Later when you go through the steps to add another person to your business, you'll be prompted to buy a license at the same time, with just one step!

  1. 在管理中心,转到“计费”>“订阅”页面。In the admin center, go to the Billing > Subscriptions page. 如果看不到此选项,则不是全局管理员或帐单管理员,无法执行此步骤。If you don't see this option, you aren't a global admin or billing admin, and can't do this step.

  2. 如果您有多个) ,请选择 "订阅 (",然后选择 " 添加/删除许可证 " 以删除许可证,以便在您雇用其他人之前不支付。Select the subscription (if you have more than one) and then select Add/Remove licenses to delete the license so you don't pay for it until you hire another person.

    稍后当您完成将其他人添加到您的企业的步骤时,系统将提示您同时购买许可证,只需一步即可!Later when you go through the steps to add another person to your business, you'll be prompted to buy a license at the same time, with just one step!

同时删除多个用户Delete many users at the same time

请参阅 Get-msoluser PowerShell cmdlet。See the Remove-MsolUser PowerShell cmdlet.

解决删除用户时遇到的问题Fix issues with deleting a user

以下是人们删除用户时遇到的最常见的问题:Here are the most common issues people encounter when deleting a user:

  • 将收到一条错误消息,其中 "无法删除用户" 一线。请稍后再试。 "You get an error message along the lines of "User cannot be deleted. Please try again later." 仔细检查帐户是否设置了电子邮件转发功能,或者是否已将其转换为共享邮箱。Double-check whether the account has email forwarding set up on it, or it's been converted to a shared mailbox. 这两种情况都将导致该错误。Both of these will cause that error. 如果帐户有电子邮件转发或已转换为共享邮箱,请不要删除该帐户。Don't delete the account if it has email forwarding or it's been converted to a shared mailbox.

  • 你没有删除用户的相应权限You don't have the appropriate permissions to delete a user. 只有属于 Microsoft 365 全局管理员或用户管理管理员 的用户才能删除用户。Only people who are Microsoft 365 global admins or user management admins can delete users. 该管理员通常是学校或企业中的技术支持人员。Usually this is the technical support in your school or business.

  • 删除用户后,用户姓名继续显示在全局通讯录中You delete the user but their name continues appear in your global address book. 企业使用 Active Directory 时会出现这种情况。This happens when a business is using Active Directory. 您必须从 Active Directory 中删除用户帐户。You must delete the users account from Active Directory. 有关说明,请参阅 删除用户帐户。For instructions, see Delete a User Account.

是否要从计算机中删除 Microsoft 365?转到 " 取消订阅"。Do you want to delete Microsoft 365 from your computer? Go to Cancel your subscription.

还原用户Restore a user

永久删除邮箱Permanently delete a mailbox

从 Office 365 中删除以前的员工Remove a former employee from Office 365

向 Office 365 添加新员工Add a new employee to Office 365

删除用户帐户:如果您的公司使用与 Azure AD 同步的 Active Directory ,请使用这些说明。Delete a User Account: Use these instructions if your business uses Active Directory that is synchronizing with Azure AD. 无法通过 Office 365 删除帐户。You can't do it through Office 365.