Dec 11 2020 10:43 AM - edited Dec 11 2020 10:45 AM
It appears that there is no way to programmatically change the "Hidden in navigation" value in Hub site settings. Is this true?
Dec 14 2020 06:11 AM
@johndpalm You can via the REST API by making a POST to
_api/HubSites/GetById('<yourHubsiteId>')
You can get your Original Hubsite Object by doing a GET to that endpoint. Then update the property "HideNameInNavigation" to true or false.
Dec 14 2020 08:13 AM
Solution
You can easily set Hidden in navigation setting using Set-PnPHubSite cmdlet PnP PowerShell. You need to set the HideNameInNavigation using this cmdlet.
Check this reference for more information: Set-PnPHubSite
Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Dec 14 2020 08:13 AM
Solution
You can easily set Hidden in navigation setting using Set-PnPHubSite cmdlet PnP PowerShell. You need to set the HideNameInNavigation using this cmdlet.
Check this reference for more information: Set-PnPHubSite
Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.