Default Site Collection

Brass Contributor

We are using SharePoint Oline. also, we created the two site collections as follows.

 

communication site - https://companyname.sharepoint.com

Teamsite - https://companyname.sharepoint.com/sites/team

 

Now we would like to set the default site as Teamsite.

 

for example if we logon the URL https://companyname.sharepoint.com it should point Teamsite. It means we need to set the default site as team site.

 

how can we do this?

13 Replies
Check into invoke-spositeswap powershell command here: https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/invoke-spositeswap?view=sharepo...

This can let you change the site with the default. Currently there is no way to define the home site yet. That is coming in the future.

@Chris Webb 

 

I have one more question if I delete the communication site, then the team site will be set as the default site?

 

because we just created the SharePoint site, there is no data.

"The source or target sites cannot be "associated" with an Office 365 Group or a Hub Site"
(as per https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/invoke-spositeswap?view=sharepo... )

You cannot swap a Team site.
Well he never specified office 365 group :face_with_tears_of_joy:. Good call out though.

I'm not understanding the post replies above.

 

CAN a Communications Site, set as a Hub, be made the Default site with the command mentioned? We want to do this in the future and I assumed it was possible.

 

Thanks,
Rob.

no - but he did say Teamsite - so I made an educated guess (coupled with the other conversation thread - since deleted - where he provided the error from his PowerShell, which referred to GROUP#0 ) :)
You would have to un-hubify it, swap it, then hubify it again.

@Rob O'Keefe  The article doesn't say, it does say associated hub sites cannot, but nothing about the hub itself. I wouldn't trust it thou. I would break down the hub. Preform the move, then associate everything again. I'll see if I can test having a hub on the main site on my test tenant. give me a few. 

I just re-read the article, and I stand corrected.
My original test of this awhile back was actually on a hub site. The hub parent navigation link broke, but renaming the hub fixed the URL. I also unregistered the hub site, and recreated it, and it's working as the root site. I think you can move a Hub site, but do at your own risk if you have a bunch of sites joined to it.

Is there a list of Site "types"?

 

Also, Site management in the Admin panel is out of control -- we have a lot of Yammer groups and there is no way to identify them (that I know of) or filter them out of the list.

 

So I guess when I say "list of types" above, I mean "Team Sites created by Yammer", "Team Sites created by Teams", "Team Sites created by O365 Groups"

 

Rob.

to clarify this slightly - you cannot swap a group connected team site - but, from the article:

"If the target is the root site at https://tenant-name.sharepoint.com then the source site must be either a Team Site (STS#0), a Modern Team Site (STS#3), or a Communication Site (SITEPAGEPUBLISHING#0)."

So a classic Team site, or a modern (non-group connected) Team site would be fine.
No, there isn't a way. It's either group connected or comm site etc.