Forum Discussion

Chris Reyes's avatar
Chris Reyes
Copper Contributor
Apr 03, 2018

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 Register-SPOHubSite at command pipeline posistion 1

Supply values for the following parameters:

Principals[0]:

 

I'm new to powershell so I don't know what values it's wanting or if I'm just doing something wrong...Thanks for any assistance! 

  • Hello 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.
  • Hi Chris,

    as Ovi and Philippe already mentioned, the Principals parameter set the permissions for
    a) a single user via providing UPN
    b) a group of several users via providing an email-enabled security group or
    c) all site owners in your organization via just press Enter
    ... to be able to add sites to this Hub-Site.
    This procedure is also explained here: https://support.office.com/en-us/article/create-a-hub-site-in-sharepoint-online-92bea781-15d8-4bda-805c-e441e2191ff3?ui=en-US&rs=en-US&ad=US

     

    Happy SharePointing! ;-)

  • Ovi Mocanu's avatar
    Ovi Mocanu
    Copper Contributor
    Hello 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.
    • Chris Reyes's avatar
      Chris Reyes
      Copper Contributor

      Hello. Yes, this did the trick! Thank you. I simply added the user accounts I wanted to have the ability to join Sites to the Hub and I successfully completed the conversion.

       

      And thanks to everyone for their responses!  

    • Chris Reyes's avatar
      Chris Reyes
      Copper Contributor

      Hi Jenkins. Thanks for your response. Yes I tried the following:

       

      • Philippe Ricq's avatar
        Philippe Ricq
        Copper Contributor

         

        principals[0] are list of people allowed to add sites to the hub.

        principals are assigned to the attribute permissions

         

  • Can you paste your commands? Ok can replace org name or you want in the urls but should just be register-spohubsite -site “url”
    • Chris Reyes's avatar
      Chris Reyes
      Copper Contributor

      Hi Chris. Thank you for your response. Yes here is what I tried:

Resources