Forum Discussion
Damien Flood
Apr 10, 2018Iron Contributor
Access Request Settings - Disable Allow access requests
Hi all, In SPO is it possible to disable the "Allow access requests" within the Access Request Settings via PowerShell? Cheers
Damien Flood
Jul 06, 2018Iron Contributor
Fromelard thanks! Yes I have seen the group option. So I will just wait patiently and see :)
avdberg
May 09, 2019Copper Contributor
Damien Flood It looks like it's the trick to first remove the email address and then set the option to use the associated (default) Owners group:
$ctx.web.RequestAccessEmail = ""
$ctx.web.Update()
$ctx.ExecuteQuery()
$ctx.Web.SetUseAccessRequestDefaultAndUpdate($true)
$ctx.Web.SetAccessRequestSiteDescriptionAndUpdate("test message")
$ctx.ExecuteQuery()