UX and PowerShell cmdlet that lists all sites connected to a Hub site
We need a cmdlet that lists all the sites that are linked to a Hub Site. Maybe call it Get-SPOHubSiteLinkedSites and it would take as a parameter the URL of the Hub Site.


As announced at Ignite, the modern SharePoint admin experience will be releasing the ability to view all sites associated to a hub by end of year.
For hub site visitors, you can leverage the Sites web part to display all sites associated to the hub as well (provided the visitor has access to the sites).
12 comments
-
Felicia commented
Have a PowerShell command that allow us to list out all sites that are associated to the Hub site will be great. E.g.: Get-SPOAssociatedSites -Hub {guid} OR {Hub Site URL}
-
Anonymous commented
your response 2 years ago about what you can do in the modern admin experience is as pointless today as it was then.
-
Babak Danyal commented
Any update on this one ?
-
Mandino Nabula commented
I need to access to all the sites that are part of my HUB. As they are a lot, I need to have bookmarks for each one them.
I'd like that SharePoint has an option in the HUB settings that would show you the links to all the sites that are part of this HUB. -
Christopher commented
We need a listing of the associated sites with the hub site that is security trimmed and performs well. We have several hundred projects ongoing at once, each with their own site associated with a single hub site. We can put the 'Sites' web part on the page, but that has a limit of 99 sites and is not sortable. The 'See All' mechanism does sort alphabetically, but it is displaying the 'Cards', not just a list and after 60 or so sites, the page takes forever to load.
-
Anonymous commented
thanks Admin. but the ask is to have a PowerShell commandlet please. for automation and governance purposes.
-
Anjani Ch commented
Any update on this?
By when could we expect this powershell command... please respond -
Nick Thoman commented
Was looking for a way to do this today.... Please add!
-
Michael Elkins commented
Lookup list on a hub site accessible to any associated site.
-
Ellya commented
This would be awesome!
-
Ellya commented
Given we can now use SharePoint Management Shell to create Hub Sites and associate sites with them. It would be great to be able to manage these over time with a cmdlet like:
get-SpoHubSiteAssociation -hubsite <https://HubSiteURL>
to show all the sites associated with a named hub. This would help with Hub Site management once they start to grow legs!
-
Michael Blumenthal commented
See https://docs.microsoft.com/en-us/sharepoint/dev/features/hub-site/hub-site-powershell for the existing Hub Site cmdlets.