Поделиться через


SPO Tidbit - Creating your intranet with hub sites

Hello All,

Since SharePoint hub sites are now being rolled out and you should be seeing them, I thought it would be a great time to provide you with some information for managing these sites.  As a refresher these sites are the the building blocks of the mobile and intelligent intranet. SharePoint hub sites bring together related sites to roll up news and activity, and to create cohesion with shared navigation and look-and-feel. A hub site can have both team sites and communication sites associated under it.

SharePoint hub sites bring the following new capabilities to you and your intranet:

  • Cross-site navigation – increase visibility of and navigation among associated sites
  • Content rollup – read aggregated news and discover related site activities
  • Consistent look-and-feel – establish a common theme to improve visitor awareness of connected sites
  • Scoped search – focus on finding content that resides within the hub site’s associated sites

Please note the following when deciding your site structure with Hub Sites

  • We recommend selecting a communication site, or a team site that uses the new template. If you use a classic team site, the hub navigation will appear only on modern pages, and hub site settings will only appear on modern pages. Sites that are already associated to another hub can't be converted to a hub site.
  • You can create up to 50 hub sites for an organization. There is no limit on the number of sites that can be associated with a hub site.
  • Hub sites aren't available if you set up SharePoint Multi-Geo for your organization.
  • When users associate their sites with a hub, it doesn't impact the permissions of either the hub site or the associated sites. It's important to make sure all users you allow to associate sites to the hub have permission to the hub.

Registering an SPO Hub Site:

  1. Make sure you have the latest supported version of SPO Management Shell installed on your machine.
  2. Connect to SPO
  3. Create a Site Collection or Pick a Site Collection that already exists
  4. Pick an admin or create a group to manage hub site
  5. Run the command https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/register-spohubsite?view=sharepoint-ps

Register-SPOHubSite -Site <SiteCollectionUrl>

  1. When prompted with Principals[0] provide the admins UPN or the name of the group
  2. Changes could take several hours to be reflected in UX. (See this article for more info about UX changes)

Changing administratiomn of SPO Hub Sites

  1. Make sure you have the latest supported version of SPO Management Shell installed on your machine.
  2. Connect to SPO
  3. If you want to provide permission to a group of users then create group or get group name
  4. Run the following command /en-us/powershell/module/sharepoint-online/grant-spohubsiterights?view=sharepoint-ps

Grant-SPOHubSiteRights -identity <SiteCollectionUrl> -Principals <UPNofUserorGroupName> -Rights Join

Get Hub Site info for Tenant

  1. Make sure you have the latest supported version of SPO Management Shell installed on your machine.
  2. Connect to SPO
  3. To get a list of all Hub Sites in Tenant run the following command /en-us/powershell/module/sharepoint-online/get-spohubsite?view=sharepoint-ps

Get-SPOHubSite

  1. To get information around a specific hub Site run (More detailed) the command /en-us/powershell/module/sharepoint-online/get-spohubsite?view=sharepoint-ps

Get-SPOHubSite -identity <SiteCollectionUrl>

Articles

SharePoint hub sites overview /en-us/sharepoint/dev/features/hub-site/hub-site-overview

SharePoint site design and site script overview /en-us/sharepoint/dev/declarative-customization/site-design-overview

Set up your SharePoint hub site https://support.office.com/en-us/article/set-up-your-sharepoint-hub-site-e2daed64-658c-4462-aeaf-7d1a92eba098

Pax