Forum Discussion
Steve Johnson
Sep 02, 2018Copper Contributor
Allow access request setting
Hey all, Is there a way to disable the Allow access request setting? I’ve had a try using the null $web.RequestAccessEmail approach, but the option is still enabled with the Site Owners group se...
- Sep 03, 2018
Hi Steve Johnson, try this (works in my tenancy):
Connect-PnPOnline -Url <site collection url>
$web = Get-PnPWeb
$web.RequestAccessEmail = ""
$web.Update()
Invoke-PnPQuery
Oliver Zeiser
Sep 03, 2018Copper Contributor
Setting it to string.Empty should work. PnP Core has an extension for it. web.DisableRequestAccess()