Forum Discussion
Oct 05, 2016
Changing the "Allow members to share" SharePoint site Access Requests setting using Office Dev PnP
How can I set the "Allow members to share the site and individual files and folders" setting using the Office Dev PnP Provisioning Engine or PowerShell commands? I haven't found this specific setting...
Torill S
Oct 06, 2016Copper Contributor
Hello Harold,
Are you using SPO? This url might point you in the right direction regarding changing the setting programatically for SharePoint online:
https://blogs.msdn.microsoft.com/chandru/2015/12/31/sharepoint-onlinecsom-change-access-requests-settings/ (there is a comment with a suggestion to how this can be removed with powershell)
I have just started looking into this, so haven't tested this myself yet.
Let me know when you find a way to have this setting un-checked during site provisioning with PnP Provisioning Engine, as I am currently searching for that myself.