创建用于数据内容迁移的用户映射文件Create a user-mapping file for data content migration

本文介绍如何创建可与 SharePoint 迁移工具 (SPMT) 一起使用的用户映射文件。This article shows how to create a user-mapping file to use with the SharePoint Migration Tool (SPMT).

借助 SPMT,你可以从 SharePoint 本地文档库或本地文件共享位置迁移文件,并将其移动到 Microsoft 365。该功能对 Microsoft 365 用户免费。SPMT lets you migrate your files from SharePoint on-premises document libraries or on-premises file shares and move them to Microsoft 365. It's free to Microsoft 365 users.

备注

目前, SharePoint 迁移工具 不适用于由世纪互联在中国运营的 Office 365 的用户。Currently the SharePoint Migration Tool is not available for users of Office 365 operated by 21Vianet in China.

创建用于数据内容迁移的用户映射文件Create a user-mapping file for data content migration

从本地文件共享位置或本地 SharePoint Server 文档库迁移数据时,将使用默认用户映射文件。此外,你还可以使用以下指南,创建自己的用户映射文件。请使用任意文本编辑器或 Excel 等应用程序创建 CSV 文件。A default user-mapping file is used when migrating your data from a local file share or an on-premises SharePoint Server document library. You can also create your own using the following guidelines. Use any text editor, or an application like Excel, to create the CSV file.

CSV 文件格式CSV file format

重要

对于 SharePoint Server 2010 迁移,A 列仅支持登录名。For SharePoint Server 2010 migrations, only the log in name is supported in column A.

对于 SharePoint Server 2013 及更高版本 ,你可以使用 A 列中的登录名或 SID。For SharePoint Server 2013 and higher , you may use either the log in name or the SID in column A.

对于所有 SharePoint Server 版本:For all SharePoint Server versions:

用于数据内容迁移的用户映射文件

只有 SharePoint Server 2013 和 2016 可以使用此格式(除了使用登录名之外)。Only SharePoint Server 2013 & 2016 may use this format, in addition to using a log in name.

2013 和 2016 版本的用户映射

重要

请勿在 CSV 文件中包含标题行。Do not include a header row in your CSV file.

创建用于数据迁移的用户映射文件To create a user-mapping file for data migration

以下示例使用 Excel 创建 CSV 文件。The following example uses Excel to create the CSV file.

  1. 启动 Excel。Start Excel.

  2. 输入用于用户映射的值。Enter the values for your user-mapping.

  • 列 A: 在源位置中,输入 用户登录名必需Column A: From the source location, enter the log in name of the user. Required.

  • 列 B: 在目标网站上,输入 用户主体名称 (UPN)必需Column B: On the target site, enter the user principal name (UPN). Required.

  • 列 C: 如果目标网站上的用户主体名称 (UPN) 是 Active Directory (AD) 组,请输入 TRUE 。如果不是 AD 组,请输入 FALSE必需。Column C: If the user principal name (UPN) on the target site is an Active Directory (AD) group, enter TRUE. If it's not an AD group, enter FALSE. Required.

  1. 关闭并另存为逗号分隔 (*.csv) 文件。Close and save as a comma-delimited (*.csv) file.

将用户映射文件上传到 SharePoint 迁移工具Upload your user-mapping file to SharePoint Migration Tool

创建自己的用户映射文件后,将其上传到 SharePoint 迁移工具。After you create your own user-mapping file, upload it to the SharePoint Migration tool.

  1. 启动 SPMT。输入 Microsoft 365 用户名和密码,然后选择“登录”。Start SPMT. Enter your Microsoft 365 username and password, and then select Sign in.

  2. 选择“开始首次迁移”。Select Start your first Migration.

  3. 选择迁移类型。Select your migration type.

  4. 输入源信息,然后选择“下一步”。Enter your source information, and then select Next.

  5. 输入目标信息,然后选择“下一步”。Enter your destination information, and then select Next.

  6. 审阅迁移详细信息,然后选择“下一步”。Review your migration details, and then select Next.

  7. 在“选择设置”页上,展开“查看所有设置”。On the Choose your settings page, expand View all settings.

  8. 在“ 用户映射 ”中的“ 用户 ”部分下,依次选择“ 选择文件 ”和用户映射文件。Under Users section in the User mapping box, select Choose file , and select your user-mapping file.

  9. 选择“ 保存 ”。Select Save.

重要

SPMT 仅迁移默认 SharePoint 组。SPMT only migrates default SharePoint groups.

不能将 AD 组映射到目标网站的 SharePoint 组。It is not possible to map an AD group to a SharePoint group in the target site. 你无法使用 SPMT 将 SharePoint Server 组映射到 SharePoint 组。You cannot map a SharePoint Server group to a SharePoint group with SPMT.