Now that we have covered sites, let's talk
about hub sites. Hub sites are modern
SharePoint sites that are promoted to or
registered as a hub site. They can either
be a modern team site or a modern
communication site. Once you've registered
them, the global navigation will be added
automatically, and you can also configure
who is allowed to add sites to the hub.
And if you want to, you can even configure
an approval workflow by using Microsoft
Flow before a site is added to a hub. The
limit at the time of recording this course
in September 2019 was of 2000 hub sites
per tenant. To register a hub site from
the admin center, simply select the site
and click the Register as a Hub Site
button. You can then give it a different
name. You can decide who can associate
sites with the hub, and those can be
direct users, security groups, or even
Office 365 groups. To register a hub site
with PowerShell, we can use the
Register‑SPOHubSite PowerShell cmdlet and
then give it the site, as well as user IDs
that we want to allow to be able to add
sites to this hub. If we want to add users
afterwards that can join sites to the hub,
we can do it via the
grant‑SPOHubSiteRights PowerShell cmdlet
and specify the principles and rights
parameters. To associate other sites to a
hub, we can use the
Add‑SPOHubSiteAssociation PowerShell
cmdlet, specify the site that we want to
attach to the hub, as well as the hub site
to which it should be attached. If you
want to unregister a hub site, you can use
the Unregister‑SPOHubSite PowerShell
cmdlet and specify the site that should be
unregistered, and it really just returns back to a normal SharePoint site.