Powershell脚本,用于访问SharePoint Online的安全修整 [英] Powershell script to access the Security trim for SharePoint Online
问题描述
你好,
我一直试图访问 securitytrim (_ layouts / 15 / SiteNavigationSettings.aspx)上下文中的sitenavigationsettings
页面sharepoint online。
我可以使用下面的代码轻松地为onprem做这些。
$ Context = New-Object Microsoft.SharePoint.Publishing.Navigation.SiteNavigationSettingsWriter($ SPWeb.Site)
关键字 SiteNavigationSettingsWriter 似乎不支持在线。我错过了什么吗?
提前致谢!!!
Deepak S
您好Deepak,
不幸的是,在SharePoint Online中,没有一个类可以在Microsoft.SharePoint.Client.Publishing.Navigation中实现它。当前的命名空间。
https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-csom/jj165472(v%3Doffice.15 )
如果您想管理发布网站的导航设置,我们可以使用WebNavigationSettings类来实现它。
最好的问候,
Hello,
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 onprem 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 out anything?
Thanks in advance!!!
Deepak S
Hi Deepak,
Unfortunately, in SharePoint Online, there is not a class to achieve it in the Microsoft.SharePoint.Client.Publishing.Navigation namespace in currently.
https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-csom/jj165472(v%3Doffice.15)
If you want to manages the navigation settings for a publishing site, we can use WebNavigationSettings class to achieve it.
Best Regards,
这篇关于Powershell脚本,用于访问SharePoint Online的安全修整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!