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
Matt Weston
Sep 03, 2018Iron Contributor
Hi Steve Johnson, try this (works in my tenancy):
Connect-PnPOnline -Url <site collection url>
$web = Get-PnPWeb
$web.RequestAccessEmail = ""
$web.Update()
Invoke-PnPQuery
Steve Johnson
Sep 03, 2018Copper Contributor
Huge thanks for that Matt, that works! Although the test site collection I was using, it refused to work on, but on my others, it was fine. Weird.