Powershell脚本,用于访问SharePoint Online的安全修整 [英] Powershell script to access the Security trim for SharePoint Online

查看:83
本文介绍了Powershell脚本,用于访问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类来实现它。


https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-csom/jj163435%28v %3doffice.15%29


最好的问候,


Dennis


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.

https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-csom/jj163435%28v%3doffice.15%29

Best Regards,

Dennis


这篇关于Powershell脚本,用于访问SharePoint Online的安全修整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆