Create a hub site in SharePoint Online
If you're a global or SharePoint admin in Office 365, you can convert any existing site to a hub site using Microsoft PowerShell.
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 with another hub can't be converted to a hub site.
You can create up to 100 hub sites for an organization. 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. It's important to make sure all users you allow to associate sites to the hub have permission to the hub.
Create a hub site using PowerShell
Download and install the latest SharePoint Online Management Shell. If you already have a previous version installed, uninstall it first and then install the latest version.
Connect the SharePoint Online Management Shell to SharePoint Online for your organization. For info, see Connect the SharePoint Online PowerShell.
(Optional) If you want a group of people to be able to associate their sites to the hub, create a mail-enabled security group and add the users.
Run the following command to convert the site to a hub site and enable the hub site features:
(Where URL is the URL of the site.)
When prompted with Principals, provide the group created in step 3, or the UPN of an individual user. You can enter additional principals, one per line. Once you are finished assigning permissions, press Enter. If you want all site owners in the organization to be able to associate their sites with the hub, press Enter at the first prompt.
To restrict permission to associate sites to the hub after creation, run the following command: >
Grant-SPOHubSiteRights -Identity -Principals GroupEmail -Rights Join> (Where Identity is the URL of the site and GroupEmail is the email address of the mail-enabled security group.)
Notify the hub site owners that their site has been converted to a hub site.
Optionally, use a site design that gets applied when sites join the hub. For info, see Set up a site design for your hub site. For more info about site designs and site scripts, see SharePoint site design and site script overview.
For info about the above PowerShell commands, as well as the other commands for managing hub sites, see Manage SharePoint hub sites.
For info about how site owners can customize hub sites, see Set up your SharePoint hub site.