In 2 steps how to create hub site in SharePoint Online

In 2 steps best way to create hub site in SharePoint Online – step by step guide

3 comments

 32,569 total views,  3 views today

In the “create hub site in SharePoint Online” article, we will learn about how to create a hub site in SharePoint Online step by step.

Here we’ll discuss and learn about Hub Sites in SharePoint Online modern sites like what is a hub site in SharePoint online, why a hub Site in SharePoint online, how to create a Hub site in SharePoint online, how to add a Team site or communication site in Hub Site and few tips to create hub site in SharePoint online – office 365 and also we will see that how to create a hub site using PnP PowerShell, finally at end of this article, we will understand “Why should we create a hub site in SharePoint Online (benefits of SharePoint hub site)?”

Key highlights: How to create hub site in SharePoint Online

  • Introduction
  • What is the Hub site in SharePoint online?
  • Why Hub Site in SharePoint online?
  • How to create a Hub site in SharePoint online?
  • How to add a Team site or communication site in Hub Site?
  • Some key features or use cases of Hub sites in SharePoint Online.
  • How to create a new hub site using PowerShell?
  • Register a site as a hub site by using the Register-SPOHubSite cmdlet
  • Set permissions for specific users: SPOHubSiteRights
  • Set permissions for specific users: Grant-PnPHubSiteRights
  • Add-PnPHubSiteAssociation: PnP Hub site
  • Associate multiple sites to a hub site: Import-Csv to Add-PnPHubSiteAssociation
  • Summarize – what we had here.
  • Latest update on Hub Site from Microsoft.
  • References

Introduction: Hub site in SharePoint Online

These days hub sites, modern sites, and megamenu are buzzwords in the modern SharePoint world and hub sites are the heart of all these – rather I would say hub site is a subset of SharePoint site administration or mini modern admin center with respect to site administration. So in this article, I’ll focus on what is a hub site, the use cases of hub sites, how they can be configured, etc.

What is a Hub Site in SharePoint online?

 In simple words, we can say that the Hub Site is a collection of sites connected to a master site from where all connected sites can be navigated and managed. It has the following key attributes.

  • Discover related content such as news and other site activities,
  • Apply common navigation, branding, and site structure across associated sites
  • Search across all associated sites.

For example – let’s say you are a project manager and managing multiple projects in SharePoint, .NET, Java, etc. And for these different types of projects, you have different site collections. Now, we want to maintain the same look and feel for all the project sites and want to navigate from one project site to another project site seamlessly, and want to share the common news across all departments/project sites. Here, Hub Site is a way to go. We need to connect these site collections to a Hub site. In the coming section, we’ll see how a site can be connected to a Hub Site. 

Hub Site architecture in SharePoint online (Hub Site in SharePoint online)

Below is the hub site architecture: 

SharePoint hub site examples - Hub site architecture in SharePoint Online
Hub site architecture in SharePoint Online
Image Source: https://docs.microsoft.com/en-us/sharepoint/planning-hub-sites

Why Hub Site in SharePoint online?

 For our above project sites scenario – if we want to achieve the same, we need to have a root site called Projects and under this, various subsites (SharePoint, .NET, Java, etc.) which will form the nested architecture and this will lead to a bad user adoption experience when it comes to navigation.

One other really big challenge – let’s say we have 10 subsites and out of 10, in one subsite, we need to activate a feature (let’s consider publishing feature) which has a dependency with site collection level feature, so first, we need to activate in site collection level even though it is irrelevant for other 9 subsites.

As a result, for a site administrator, it is very difficult to manage. So, Microsoft has recommended using flat architecture, i.e., no subsites. We should adapt to create a new site collection for each requirement. Whether we like it or not, we are bound to adopt this fashion – let’s say we have created an Office 365 group and immediately if we come to active sites pages in the modern admin center, we can see one modern new site has been created automatically with the Office 365 group name. 

Note:

  • Having said this, it does not mean that we cannot create a subsite – still, we can, but Microsoft does not recommend it. 

How to create a Hub Site in SharePoint online?

 Any active site can be designated as a Hub Site through the modern SharePoint Office 365 admin center or PnP command. Go to the modern SharePoint admin page and under the site, click on Active Sites. 

hub site in SharePoint Online - Active sites report in SharePoint Online Admin Center
Active sites report in SharePoint Online Admin Center

 Now, we can see all available active sites out here – now planning to make “TestSite001” a Hub Site. To do this, let’s follow the below steps.

  • Select the “TestSite001” radio button
  • Click on the “Hub” drop-down list
  • Click on “Register as hub site”
  • Give the display name of the hub site and owner
  • Then, click the Save button  

This will take some time to complete all the required settings. 

How to create hub site in SharePoint online - Register hub site SharePoint online
How to create a hub site in SharePoint online (Register hub site SharePoint online)

SharePoint Online configures hub site:

SharePoint hub site configuration - how to create hub site in SharePoint online
SharePoint hub site configuration

Now, a site has been configured as a “Hub Site”. 

Notes:

  • In a tenant, we can have multiple Hub Sites (maximum 2000 sites) 

How to add a Team site or communication site to the Hub Site?

Adding a site to a Hub Site is like adding a brother and sister to an elder brother (i.e. Hub Site). Now, we’ll see how a new and existing site can be connected to a Hub Site. This is the homepage of the newly created Hub Site. 

Associate a SharePoint site with a hub site
Associate a SharePoint site with a hub site

 Click on the +Create site button, then give the site name; For example, “TestTeamSite_Brother” (we can give any name). Then, click the “Save” button. 

Get a team site connected to Office 365 Groups
Get a team site connected to Office 365 Groups

Now, we can see the wonder – come to the SharePoint modern admin homepage and go to the Active Sites screen. We can see the newly created Team site listed out here which is connected to the Hub – Project “Hub Site”. 

Create hub site in SharePoint online
Create a hub site in SharePoint online

Another way is, can connect any existing site to a hub site. Let’s do that – select the particular existing site radio button and from the Hub menu, click on the “Associate with a Hub” link. 

Associate site collection to a hub site
Associate site collection to a hub site

Notes:

  • There is no limit on the number of sites that can be associated with a hub site. When users associate their sites with a hub, it doesn’t impact the permissions of either the hub site or the associated sites.

Select the Hub Site from the dropdown list and click on the Save button. This will take some time to do the all required configuration. 

Hub association SharePoint - hub site in SharePoint Online
Hub association in SharePoint Online

Some key features or use cases of Hub Site in SharePoint Online:

  • Shared navigation
  • Search across the hub
  • News roll-up
  • Associated sites
  • Highlighted content
  • Events

Create hub site using PnP PowerShell (How to create hub site in SharePoint online)

Connect-PnPOnline -SPOManagementShell
New-PnPSite -Type TeamSite 
 -title "Contoso marketing division" 
 -alias "marketing" 
 -Description "Main site for collaboration for marketing teams at Contoso"

Register a site as a hub site by using the Register-SPOHubSite cmdlet: Create hub site using PnP PowerShell

Register-SPOHubSite -Site https://contoso.sharepoint.com/sites/marketing

Set permissions for specific users: SPOHubSiteRights – Create hub site using PnP PowerShell

Grant-SPOHubSiteRights -Identity https://contoso.sharepoint.com/sites/marketing -Principals "nestorw@contoso" -Rights Join

Set permissions for specific users: Grant-PnPHubSiteRights (Create hub site using PnP PowerShell)

Grant-PnPHubSiteRights -Identity https://contoso.sharepoint.com/sites/hubsite -Principals "myuser@mydomain.com","myotheruser@mydomain.com" -Rights Join

Add-PnPHubSiteAssociation: PnP Hub site (Create hub site using PnP PowerShell)

$myHubsite = "https://globalsharepoint2019.sharepoint.com/sites/TestHubSite"
$siteUrl = "https://globalsharepoint2019.sharepoint.com/sites/TestTeamSite"

Add-PnPHubSiteAssociation -Site $SiteUrl  -HubSite $myHubsite

Create hub site using PnP PowerShell – Associate multiple sites to a hub site: Import-Csv to Add-PnPHubSiteAssociation

Using the below PnP PowerShell we can add or register multiple sites to a hub site by importing the site’s CSV file.

$mySitesCSV = Import-Csv -Path "C:\temp\MySitesToAssociate.csv"
$myHubsite = "https://"<tenantname>".sharepoint.com/sites/TestHubSite"

foreach ($oneSite in $mySitesCSV)
 {
    Add-PnPHubSiteAssociation -Site $oneSite.SiteUrl -HubSite $myHubsite
}

Reference: https://docs.microsoft.com/en-us/sharepoint/dev/features/hub-site/create-hub-site-with-powershell

Summary – what we had here (how to create hub site in SharePoint online).

Thus, we have learned – what is hub site is, how to configure/create hub sites, and use cases of hub sites, summarized as below:

  • Understanding the hub sites in SharePoint online
  • SharePoint hub site examples
  • SharePoint hub sites limitations
  • SharePoint hub site navigation
  • SharePoint hub sites vs subsites
  • How to create a hub site
  • create a hub site in SharePoint online
  • create a SharePoint hub site
  • what is a SharePoint hub site
  • SharePoint hub sites new in Office 365
  • How to Create Hub Sites in SharePoint Online – SharePoint Online
  • Overview Of Hub Sites In SharePoint Online
  • How to create a new hub site using PowerShell?
  • Register a site as a hub site by using the Register-SPOHubSite cmdlet
  • Set permissions for specific users: SPOHubSiteRights
  • Set permissions for specific users: Grant-PnPHubSiteRights
  • Add-PnPHubSiteAssociation: PnP Hub site
  • Associate multiple sites to a hub site: Import-Csv to Add-PnPHubSiteAssociation

Latest update on Hub Site from Microsoft

I’ll keep it updated in this section – if any changes come from Microsoft on Hub Site.

See Also: Free online SharePoint training Tutorials

You may also like the below SharePoint Online training tutorials:

References: how to create hub site in SharePoint online

PDF Download Image

Download SharePoint Online & Office 365 Administration eBook

Buy the premium version of SharePoint Online & Office 365 administration eBook from here:



Buy SharePoint Online & Office 365 Administration eBook


 

Get the free demo PDF eBook from here:

FREE DOWNLOAD

Send download link to:

Subscribe to get exclusive content and recommendations every month. You can unsubscribe anytime.

About Post Author

3 comments on “In 2 steps best way to create hub site in SharePoint Online – step by step guide”

Do you have a better solution or question on this topic? Please leave a comment