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, are you referring to the request form for users to complete if they don't have access?
If so, you can do this through the user interface.
On modern sites:
- Click on the Settings Cog, and select Site Permissions.
- Once the Site Permissions pop out is on the screen, select "Advanced permissions settings"
- You will then see a classic page with the ribbon at the top. In the "Manage" group, click "Access Request Settings"
- Untick the option "Allow access requests"
I hope that helps