Programattically set global Navigation Settinigs in O365 sharepoint

Iron Contributor


Is there any way to  programattically set the Global navigation settings in Sharepoint Online


Can the PnP-Powershell commands set this?

3 Replies

Thanks Juan, that helped. It can be done using the PNP-Powershell commands:

Connect-SPOnline -Url -Credentials o365





$nav.UseShared=$true #Display the same navigation items as the parent site 
$props["__GlobalNavigationIncludeTypes"]=1 #show Subsites

Cool! Glad my advide directed you to a solution :)