Forum Discussion

Steve Johnson's avatar
Steve Johnson
Copper Contributor
Sep 02, 2018

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...
  • Matt Weston's avatar
    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

Resources