I have been trying to access the securitytrim (_layouts/15/SiteNavigationSettings.aspx)context under the sitenavigationsettings page in sharepoint online.

I can do them easily for the on premise using the below code:

$Context = New-Object Microsoft.SharePoint.Publishing.Navigation.SiteNavigationSettingsWriter($SPWeb.Site)

The keyword SiteNavigationSettingsWriter seems not supporting for online. Am I missing anything?

Thanks in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.