Default Site Collection

%3CLINGO-SUB%20id%3D%22lingo-sub-810218%22%20slang%3D%22en-US%22%3EDefault%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810218%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20using%20SharePoint%20Oline.%20also%2C%20we%20created%20the%20two%20site%20collections%20as%20follows.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecommunication%20site%20-%20%3CA%20href%3D%22https%3A%2F%2Fcompanyname.sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcompanyname.sharepoint.com%3C%2FA%3E%3C%2FP%3E%3CP%3ETeamsite%20-%20%3CA%20href%3D%22https%3A%2F%2Fcompanyname.sharepoint.com%2Fsites%2Fteam%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcompanyname.sharepoint.com%2Fsites%2Fteam%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20we%20would%20like%20to%20set%20the%20default%20site%20as%20Teamsite.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Efor%20example%20if%20we%20logon%20the%20URL%20%3CA%20href%3D%22https%3A%2F%2Fcompanyname.sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcompanyname.sharepoint.com%3C%2FA%3Eit%20should%20point%20Teamsite.%20It%20means%20we%20need%20to%20set%20the%20default%20site%20as%20team%20site.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehow%20can%20we%20do%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-810218%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810227%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810227%22%20slang%3D%22en-US%22%3ECheck%20into%20invoke-spositeswap%20powershell%20command%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-online%2Finvoke-spositeswap%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-online%2Finvoke-spositeswap%3Fview%3Dsharepoint-ps%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20can%20let%20you%20change%20the%20site%20with%20the%20default.%20Currently%20there%20is%20no%20way%20to%20define%20the%20home%20site%20yet.%20That%20is%20coming%20in%20the%20future.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810310%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810310%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20one%20more%20question%20if%20I%20delete%20the%20communication%20site%2C%20then%20the%20team%20site%20will%20be%20set%20as%20the%20default%20site%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebecause%20we%20just%20created%20the%20SharePoint%20site%2C%20there%20is%20no%20data.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810504%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810504%22%20slang%3D%22en-US%22%3E%22The%20source%20or%20target%20sites%20cannot%20be%20%22associated%22%20with%20an%20Office%20365%20Group%20or%20a%20Hub%20Site%22%3CBR%20%2F%3E(as%20per%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-online%2Finvoke-spositeswap%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-online%2Finvoke-spositeswap%3Fview%3Dsharepoint-ps%3C%2FA%3E)%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20cannot%20swap%20a%20Team%20site.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810850%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810850%22%20slang%3D%22en-US%22%3EWell%20he%20never%20specified%20office%20365%20group%20%3Aface_with_tears_of_joy%3A.%20Good%20call%20out%20though.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810930%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810930%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20not%20understanding%20the%20post%20replies%20above.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECAN%20a%20Communications%20Site%2C%20set%20as%20a%20Hub%2C%20be%20made%20the%20Default%20site%20with%20the%20command%20mentioned%3F%20We%20want%20to%20do%20this%20in%20the%20future%20and%20I%20assumed%20it%20was%20possible.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3ERob.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810951%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810951%22%20slang%3D%22en-US%22%3Eno%20-%20but%20he%20did%20say%20Teamsite%20-%20so%20I%20made%20an%20educated%20guess%20(coupled%20with%20the%20other%20conversation%20thread%20-%20since%20deleted%20-%20where%20he%20provided%20the%20error%20from%20his%20PowerShell%2C%20which%20referred%20to%20GROUP%230%20)%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810961%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810961%22%20slang%3D%22en-US%22%3EYou%20would%20have%20to%20un-hubify%20it%2C%20swap%20it%2C%20then%20hubify%20it%20again.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810973%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810973%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3786%22%20target%3D%22_blank%22%3E%40Rob%20O'Keefe%3C%2FA%3E%26nbsp%3B%20The%20article%20doesn't%20say%2C%20it%20does%20say%20associated%20hub%20sites%20cannot%2C%20but%20nothing%20about%20the%20hub%20itself.%20I%20wouldn't%20trust%20it%20thou.%20I%20would%20break%20down%20the%20hub.%20Preform%20the%20move%2C%20then%20associate%20everything%20again.%20I'll%20see%20if%20I%20can%20test%20having%20a%20hub%20on%20the%20main%20site%20on%20my%20test%20tenant.%20give%20me%20a%20few.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810975%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810975%22%20slang%3D%22en-US%22%3EI%20just%20re-read%20the%20article%2C%20and%20I%20stand%20corrected.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810981%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810981%22%20slang%3D%22en-US%22%3EMy%20original%20test%20of%20this%20awhile%20back%20was%20actually%20on%20a%20hub%20site.%20The%20hub%20parent%20navigation%20link%20broke%2C%20but%20renaming%20the%20hub%20fixed%20the%20URL.%20I%20also%20unregistered%20the%20hub%20site%2C%20and%20recreated%20it%2C%20and%20it's%20working%20as%20the%20root%20site.%20I%20think%20you%20can%20move%20a%20Hub%20site%2C%20but%20do%20at%20your%20own%20risk%20if%20you%20have%20a%20bunch%20of%20sites%20joined%20to%20it.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810984%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810984%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20a%20list%20of%20Site%20%22types%22%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20Site%20management%20in%20the%20Admin%20panel%20is%20out%20of%20control%20--%20we%20have%20a%20lot%20of%20Yammer%20groups%20and%20there%20is%20no%20way%20to%20identify%20them%20(that%20I%20know%20of)%20or%20filter%20them%20out%20of%20the%20list.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20guess%20when%20I%20say%20%22list%20of%20types%22%20above%2C%20I%20mean%20%22Team%20Sites%20created%20by%20Yammer%22%2C%20%22Team%20Sites%20created%20by%20Teams%22%2C%20%22Team%20Sites%20created%20by%20O365%20Groups%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810985%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810985%22%20slang%3D%22en-US%22%3Eto%20clarify%20this%20slightly%20-%20you%20cannot%20swap%20a%20group%20connected%20team%20site%20-%20but%2C%20from%20the%20article%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%22If%20the%20target%20is%20the%20root%20site%20at%20%3CA%20href%3D%22https%3A%2F%2Ftenant-name.sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant-name.sharepoint.com%3C%2FA%3Ethen%20the%20source%20site%20must%20be%20either%20a%20Team%20Site%20(STS%230)%2C%20a%20Modern%20Team%20Site%20(STS%233)%2C%20or%20a%20Communication%20Site%20(SITEPAGEPUBLISHING%230).%22%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20a%20classic%20Team%20site%2C%20or%20a%20modern%20(non-group%20connected)%20Team%20site%20would%20be%20fine.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-811032%22%20slang%3D%22en-US%22%3ERe%3A%20Default%20Site%20Collection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-811032%22%20slang%3D%22en-US%22%3ENo%2C%20there%20isn't%20a%20way.%20It's%20either%20group%20connected%20or%20comm%20site%20etc.%3C%2FLINGO-BODY%3E
Highlighted
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
Highlighted
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.
Highlighted

@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.

Highlighted
"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.
Highlighted
Well he never specified office 365 group :face_with_tears_of_joy:. Good call out though.
Highlighted

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.

Highlighted
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 ) :)
Highlighted
You would have to un-hubify it, swap it, then hubify it again.
Highlighted

@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. 

Highlighted
I just re-read the article, and I stand corrected.
Highlighted
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.
Highlighted

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.

Highlighted
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.
Highlighted
No, there isn't a way. It's either group connected or comm site etc.