启用或禁用网站的外部共享Turn external sharing on or off for a site

必须是 Microsoft 365 中的全局管理员或 SharePoint 管理员,才能更改网站(旧称为“网站集”)的外部共享设置。You must be a global or SharePoint admin in Microsoft 365 to change the external sharing setting for a site (previously called a "site collection"). 网站所有者不得更改此设置。Site owners are not allowed to change this setting.

请注意,此过程适用于经典网站、通信网站和新团队网站。若要了解如何更改用户的 OneDrive 的外部共享设置,请参阅更改用户的 OneDrive 的外部共享设置。若要了解如何更改组织级设置,请参阅启用或禁用 SharePoint 的外部共享。若要更改 Teams 专用频道网站,必须使用 Set-SPOSiteNote that this procedure applies to classic sites, communication sites, and new team sites. To learn how to change the external sharing setting for a user's OneDrive, see Change the external sharing setting for a user's OneDrive. For info about changing your organization-level settings, see Turn external sharing on or off for SharePoint. To change the settings for Teams private channel sites, you must use Set-SPOSite.

要详细了解如何为网站设置来宾访问权限,请参阅在网站中与来宾协作For detailed information about how to set up guest access for a site, see Collaborate with guests in a site.

配置网站外部共享的具体步骤To configure external sharing for a site

  1. 转到新的 SharePoint 管理中心的“活动网站”页,然后使用在组织中具有管理员权限的帐户进行登录。Go to the Active sites 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 Active sites 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 Active sites page.

  2. 在左侧栏中,选择一个网站。In the left column, select a site.

  3. 选择“ 共享 ”。Select Sharing.

  4. 选择外部共享选项(参见下表)。Select an external sharing option (see the following table).

    更改网站的外部共享设置

  5. 若要限制由域共享此网站,请选中“限制由域共享”复选框,并添加要允许或阻止的域。If you want to limit the sharing of this site by domain, select the Limit sharing by domain check box, and add the domains that you want to allow or block.

  6. 如果想更改该网站的默认共享链接类型、权限或过期设置,清除“ 与组织级设置相同 ”复选框并设定想要使用此网站的数值。If you want to change the default sharing link type, permissions, or expiration setting for this site, clear the Same as organization-level setting check box and set the value that you want to use for this site. 有关详细信息,请参阅更改网站的默认共享链接For more info, see Change the default sharing link for a site.

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

选择哪个选项...Which option to select...

选择此选项:Select this option: 如果希望:If you want to:
任何人Anyone
允许网站所有者及拥有完全控制权限的其他人与经过身份验证的人员共享网站。Allow site owners and others with full control permission to share the site with people who authenticate. 允许网站用户决定何时共享文件和文件夹,以要求身份验证或允许身份未经验证人员访问项目。Allow site users to decide when sharing files and folders to require authentication or allow unauthenticated people to access the item. 至文件和文件夹的链接均可自由地转发。Anyone links to files and folders can be freely forwarded.
新来宾和现有来宾New and existing guests
允许网站所有者及拥有完全控制权限的其他人与组织外的人员共享网站。Allow site owners and others with full control permission to share the site with people outside the organization. 这些人员需要登录并将添加至目录中。These people will need to sign in and will be added to the directory. 允许网站用户与组织目录外的人员共享文件和文件夹。Allow site users to share files and folders with people who aren't in the organization's directory.
现有来宾Existing guests
仅允许与目录中已有的人员共享。Allow sharing with only people already in your directory. 这些用户可能已存在于目录中,因为他们先前已接受共享邀请或者因为已手动添加他们。These users may exist in your directory because they previously accepted sharing invitations or because they were manually added. (你可以告诉外部用户,因为他们的用户名称中具有 #EXT# 。)(You can tell an external user because they have #EXT# in their user name.)
仅限所在组织中的人员Only people in your organization
阻止所有网站用户从外部共享任何网站内容。Prevent all site users from sharing any site content externally. (这是新经典网站的默认设置。)(This is the default setting for new classic sites.)

设置是否可用取决于组织级设置。如果你为网站启用了外部共享,稍后又对组织禁用了外部共享,那么外部共享在网站一级不可用,且所有共享链接都失效。如果你重新为组织启用外部共享,网站共享设置会恢复到之前的状态,共享链接也会继续有效。The settings available are dependent on your organization-level setting. If you enable external sharing for a site and it is later turned off for your organization, external sharing will become unavailable at the site level and any shared links will stop working. If it is turned back on for the organization, the site sharing setting will return to what it was before and the shared links will resume working.

备注

你或许与拥有来宾成员的 Microsoft 365 组共享了网站内容,而组设置阻止来宾成员访问组资源。You might have site content shared with a Microsoft 365 group that has guest members, and the group settings prevent guest members from accessing group resources. 在这种情况下,即使对网站启用外部共享,组的来宾可能仍旧无法访问网站内容。In this case, even if you turn on external sharing for the site, guests of the group may not be able to access site content. 若要启用或禁用 Microsoft 365 组来宾成员访问权限,请参阅管理 Microsoft 365 组中的来宾访问To enable or disable Microsoft 365 Group guest member access, see Manage guest access in Microsoft 365 Groups.

有关与未经认证用户共享文件和文件夹的最佳做法Best practices for sharing files and folders with unauthenticated users

Create a secure guest sharing environment(创建安全的来宾共享环境)Create a secure guest sharing environment

使用 Microsoft 365 在 SharePoint 中进行文件协作File collaboration in SharePoint with Microsoft 365

停止共享文件或文件夹或更改权限Stop sharing files or folders or change permissions