Site Swap

%3CLINGO-SUB%20id%3D%22lingo-sub-802205%22%20slang%3D%22en-US%22%3ESite%20Swap%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802205%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20looking%20at%20the%20site%20swap%20function.%20Is%20this%20possible%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20have%20a%20site%20%22%3CA%20href%3D%22https%3A%2F%2Forgname.sharepoint.com%2Fsites%2FIntranet%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Forgname.sharepoint.com%2Fsites%2FIntranet%3C%2FA%3E%22%20and%20want%20to%20swap%20it%20to%26nbsp%3B%22%3CA%20href%3D%22https%3A%2F%2Forgname.sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Forgname.sharepoint.com%3C%2FA%3E%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20first%20site%20is%20a%20hub%20site.%20Would%20this%20cause%20an%20issue%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20the%20swap%20completes%2C%20are%20the%20links%20on%20the%20first%20site%20updated%3F%3C%2FP%3E%3CP%3EE.g.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Forgname.sharepoint.com%2Fsites%2FIntranet%2FDocuments%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Forgname.sharepoint.com%2Fsites%2FIntranet%2FDocuments%3C%2FA%3Ewould%20be%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Forgname.sharepoint.com%2FDocuments%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Forgname.sharepoint.com%2FDocuments%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-802205%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802264%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802264%22%20slang%3D%22en-US%22%3ETake%20a%20look%20at%20Tony%20Redmond's%20article%20on%20that%20matter%3A%20%3CA%20href%3D%22https%3A%2F%2Foffice365itpros.com%2F2019%2F08%2F08%2Fsharepoint-online-site-swap-feature%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365itpros.com%2F2019%2F08%2F08%2Fsharepoint-online-site-swap-feature%2F%3C%2FA%3Ebasically%20site%20swap%20is%20not%20supported%20with%20Hub%20Sites.%20In%20regards%20of%20your%20question%20about%20links%2C%20you%20are%20correct%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802283%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802283%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFor%20the%20hub%20site%2C%20can%20I%20change%20the%20hub%20site%20settings%20to%20none%20for%20associated%20sites%2C%20unregister%20the%20site%20to%20be%20moved%20as%20a%20hub%20site%2C%20move%20and%20then%20re%20register%20everything%20again%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802301%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802301%22%20slang%3D%22en-US%22%3E%3CP%3EI%20tested%20this%20scenario%20quickly.%20You%20don't%20need%20to%20change%20hub%20site%20settings%20to%20None%20on%20associated%20sites.%20You%20can%20just%20Unregister%20as%20hub%20site%20on%20admin%20center%20and%20all%20associated%20sites%20are%20automatically%20disassociated.%20Then%20just%20swap%20your%20site%20and%20promote%20it%20back%20to%20as%20a%20hub%20site.%20During%20promote%20all%20site%20hub%20associations%20are%20returned%20automatically.%20So%2C%20this%20saves%20you%20few%20steps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F126733i20B643C84210B936%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F110461%22%20target%3D%22_blank%22%3E%40David%20Gorman%3C%2FA%3E%26nbsp%3B%2C%20be%20careful%20with%20this%20and%20ensure%20that%20site%20swap%20operation%20is%20completely%20done.%20I%20just%20messed%20up%20a%20test%20tenant%2C%20while%20playing%20around%20with%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802352%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802352%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5628%22%20target%3D%22_blank%22%3E%40Matti%20Paukkonen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELooks%20like%20the%20Swap%20operation%20isn't%20available%20for%20my%20tenant%20yet.%20Will%20bear%20what%20you%20said%20in%20mind%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-819555%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-819555%22%20slang%3D%22en-US%22%3E%3CP%3EI%20wrote%20a%20short%20blog%20article%20about%20this%20topic%3A%20%3CA%20href%3D%22https%3A%2F%2Fmattipaukkonen.com%2F2019%2F08%2F20%2Fswap-your-hub-to-tenant-root%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmattipaukkonen.com%2F2019%2F08%2F20%2Fswap-your-hub-to-tenant-root%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-819593%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-819593%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5628%22%20target%3D%22_blank%22%3E%40Matti%20Paukkonen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGreat%20blog%20post.%20Thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEdit%3A%20is%20there%20anyway%20to%20test%20that%20your%20tenant%20has%20the%20Site%20Swap%20functionality%20enabled%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDave%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1098209%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098209%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F110461%22%20target%3D%22_blank%22%3E%40David%20Gorman%3C%2FA%3E%26nbsp%3Byou%20can%20test%20it%20through%20PowerShell%20by%20Invoking%20the%20swap%20operation%20of%20some%20dummy%20sites%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CFONT%20face%3D%22terminal%2Cmonaco%22%3E%3CSPAN%3EConnect-SPOService%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B-Url%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22https%3A%2F%2F%3C%2FSPAN%3E%3CSPAN%3E%24tenantName%3C%2FSPAN%3E%3CSPAN%3E-admin.sharepoint.com%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B-Credential%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%24cred%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20face%3D%22terminal%2Cmonaco%22%3E%3CSPAN%3EInvoke-SPOSiteSwap%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B-SourceUrl%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%24sourceUrl%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B-TargetUrl%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%24targetUrl%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B-ArchiveUrl%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%24archiveUrl%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B-Verbose%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EOutput%20will%20be%20%22Invoke-SPOSiteSwap%20%3A%20SwapSite%20operation%20not%20yet%20supported%22%20if%20not%20yet%20supported.%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Regular Contributor

Hi all,

 

I'm looking at the site swap function. Is this possible


I have a site "https://orgname.sharepoint.com/sites/Intranet" and want to swap it to "https://orgname.sharepoint.com"

 

The first site is a hub site. Would this cause an issue?

 

When the swap completes, are the links on the first site updated?

E.g. https://orgname.sharepoint.com/sites/Intranet/Documents would be https://orgname.sharepoint.com/Documents

7 Replies
Take a look at Tony Redmond's article on that matter: https://office365itpros.com/2019/08/08/sharepoint-online-site-swap-feature/ basically site swap is not supported with Hub Sites. In regards of your question about links, you are correct

Thanks @Juan Carlos González Martín 


For the hub site, can I change the hub site settings to none for associated sites, unregister the site to be moved as a hub site, move and then re register everything again?

I tested this scenario quickly. You don't need to change hub site settings to None on associated sites. You can just Unregister as hub site on admin center and all associated sites are automatically disassociated. Then just swap your site and promote it back to as a hub site. During promote all site hub associations are returned automatically. So, this saves you few steps.

 

clipboard_image_0.png

@David Gorman , be careful with this and ensure that site swap operation is completely done. I just messed up a test tenant, while playing around with this.

Thanks @Matti Paukkonen 

 

Looks like the Swap operation isn't available for my tenant yet. Will bear what you said in mind,

 

Thanks

I wrote a short blog article about this topic: https://mattipaukkonen.com/2019/08/20/swap-your-hub-to-tenant-root/

 

Hi @Matti Paukkonen 

 

Great blog post. Thanks.

 

Edit: is there anyway to test that your tenant has the Site Swap functionality enabled?

 

Dave

@David Gorman you can test it through PowerShell by Invoking the swap operation of some dummy sites:

 

Connect-SPOService -Url "https://$tenantName-admin.sharepoint.com" -Credential $cred
Invoke-SPOSiteSwap -SourceUrl $sourceUrl -TargetUrl $targetUrl -ArchiveUrl $archiveUrl -Verbose
 
Output will be "Invoke-SPOSiteSwap : SwapSite operation not yet supported" if not yet supported.