PowerShell Script to Tune “Allows contributors to add or edit scriptable Web Parts.” to webapplication

sharepoint.stackexchange https://sharepoint.stackexchange.com/questions/224306

  •  31-12-2020
  •  | 
  •  

문제

I need to tune below option "Allows contributors to add or edit scriptable Web Parts" for particular web-application .

Can any one help me in getting this through powershell script enter image description here

도움이 되었습니까?

해결책

For a bit of context, the page you are in can be found in

Central Administration > Security > Manage web part security

There are 3 properties there, all can be accessed through server object model.

$wa = get-spwebapplication http://contoso
$wa.AllowPartToPartCommunication
$wa.AllowAccessToWebPartCatalog
$wa.AllowContributorsToEditScriptableParts

You can tweak as a regular bool

$wa.AllowContributorsToEditScriptableParts = $true
$wa.Update()

If you are looking for solutions in the context of Office 365, I can't help you, but perhaps this can point you in the right direction.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top