question

sns1 avatar image
0 Votes"
sns1 asked WendyLi-MSFT answered

Whiel register comminucation site as a hub site asking principals

Whiel registering comminucation site as a hub site asking principals
what is the prinicpals?
What we should give when it is prompting? Please help and PFA
137191-capture.png


I have given $null, but not sure of this..
and how do we know Root site template ( which is there by default)? Pleas help on this one also

office-sharepoint-online
capture.png (68.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

WendyLi-MSFT avatar image
0 Votes"
WendyLi-MSFT answered

@sns1 The parameter -Principals in the command Register-SPOHubSite is used to specify one or more principles (user or group) to be granted rights to the specified HubSite, it is same with the following setting when registering a hub site via UI:

137294-register-hub-site-panel.png

If you want to register a site as a hub site without setting any principals for it, you can just press Enter for the parameter, like the below:
137190-image.png

Or, you can use the following:

 Register-SPOHubSite https://contoso.sharepoint.com/sites/Marketing  -Principals $null

About creating a hub site in SharePoint:
https://docs.microsoft.com/en-us/sharepoint/create-hub-site


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (66.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.