pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
417 stars 644 forks source link

Disable access requests in SharePoint Online sites #1993

Open sbgillett opened 5 years ago

sbgillett commented 5 years ago

Category

[x] Bug [ ] Enhancement

Environment

[x] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013

Expected or Desired Behavior

Disable Access requests (UI equivalent below) using SPO Powershell cmdlets. Disable access requests

Observed Behavior

Powershell cmdlets to control access requests don't have the desired affect/can't perform the required action.

Steps to Reproduce

Using SharePointPnPPowerShellOnline PS module version 3.3.1811.0:

Set-PnPRequestAccessEmails -Emails " " only disabled access requests when the site is already configured to send access requests to a specific address/addresses (as the above screenshot). When the site is configured to send access requests to Team Site Owners, the above command has no effect (other than removing the value in the email address field). I need to disable access requests across all sites (and subsites) in our tenant. O365 Support was unable to suggest a workaround.

tejasthite commented 5 years ago

Is there a way to disable access request for all the SharePoint sites for SharePoint Online

sbgillett commented 5 years ago

Is there a way to disable access request for all the SharePoint sites for SharePoint Online

That is the crux of my question 😉