Forum Discussion
Chris Reyes
Apr 03, 2018Copper Contributor
SharePoint Hub Site Creation - Problem with Register-SPOHubSite
Hello. New to the community :) . I'm trying to convert a Communication site to a Hub Site using the SPO Powershell Command Register-SPOHubSite but when I run it, it asks the following:
cmdlet R...
- Apr 06, 2018Hello Chris,
If you have the latest version of SPO Management Shell installed then the Principals[0] parameter shows up. These are a list of users allowed to join modern sites to the hub. You can skip this parameter by hitting Enter, you can use an Azure AD Security Group or a list of users.
I hope this helps.
Jenkins Nesamony Sundararaj
Apr 04, 2018Brass Contributor
Hi Chris,
Can you please try like below
Syntax : Register-SPOHubSite -Site <Communication site url>
Example : Register-SPOHubSite -Site https://xxxxxxx.sharepoint.com/sites/MyHubSite
Chris Reyes
Apr 04, 2018Copper Contributor
Hi Jenkins. Thanks for your response. Yes I tried the following:
- Philippe RicqApr 05, 2018Copper Contributor
principals[0] are list of people allowed to add sites to the hub.
principals are assigned to the attribute permissions
- Jenkins Nesamony SundararajApr 04, 2018Brass Contributor
Hi Chris,
I tried using https://xxxx.sharepoint.com/teams/sitecollection, it is working.
Could you please Download and install the SharePoint Online Management Shell and try. maybe latest version missing.
- DeletedApr 04, 2018That was going to be my next suggestion but still seemed that the url is a sub site. Will see what Chris says!
- DeletedApr 04, 2018That looks like a lot of sub sites in that URL. The hub sites need to be a site collection root site. Shouldn’t be more than tenant.sharepoint.com/sites/sitename for url. “Teams” being a custom site collection naming scheme may be causing issue but not sure there. First let us know if your trying to go a sub site cause that would be the cause.