Forum Discussion
Trying to associate a site with a Hub site will return this error "Sorry you do not have access"
I have a communication site which i Register it as a Hub site using this commands:-
PS C:\windows\system32> Connect-SPOService -Url https://****-admin.sharepoint.com -Credential $userCredential
PS C:\windows\system32> Register-SPOHubSite https://****.sharepoint.com/sites/commTest
and when i was asked to pass parameters for the Principals, i click on enter (i did not enter anything) as follow:-
cmdlet Register-SPOHubSite at command pipeline position 1
Supply values for the following parameters:
Principals[0]:
now we have a user who has created a modern team site, and he was able to see the above hub-site inside the list of "Hub Site association" as follow (while we have other hub sites that did not show inside the list):-
but then the user select the above hub site and click on save, he got this error:-
so can anyone advice on this?
7 Replies
- Even thou it says they should be public by default try explicitly grantint the user access to add to the hub site per : https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/grant-spohubsiterights?view=sharepoint-ps
- john johnSteel Contributor
ChrisWebbTech wrote:
Even thou it says they should be public by default try explicitly grantint the user access to add to the hub site per : https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/grant-spohubsiterights?view=sharepoint-psChrisWebbTechthanks for the reply.. in the official MS documentations, they mentioned the following:-
When prompted with Principals[0], ........ If you want all site collection administrators in the organization to be able to associate their sites with the hub, press Enter at the first prompt.
and as per my knowledge, if an end user create his own modern team site, then this end user will be the site admin of the modern team site, is this correct? so he should be able to associate his modern team site with the above hub??
- Only one way to find out 😆