powershell
powershell copied to clipboard
[BUG] Set-PnPRequestAccessEmails -disabled does not work when coming from default
Reporting an Issue or Missing Feature
You can't disable request access emails for a site when the default (send requests to owners) is configured.
Expected behavior
Set-PnPRequestAccessEmails -disabled should just disable the feature on the connected site, for any of the other states the feature could be in.
Actual behavior
When I run Set-PnPRequestAccessEmails -disabled , nothing happens on the site. We found out that this only happens when you come from the default, which is send access requests to owners.
When you change the state to specific people and then disable this does work.
Set-PnPRequestAccessEmails -disabled > NOT OK
Our current workaround make sure the disable always works: Set-PnPRequestAccessEmails -emails "[email protected]" Set-PnPRequestAccessEmails -disabled > OK
Steps to reproduce behavior
Set-PnPRequestAccessEmails -disabled
What is the version of the Cmdlet module you are running?
2.3.0
Which operating system/environment are you running PnP PowerShell on?
- [ X] Windows
- [ ] Linux
- [ ] MacOS
- [ ] Azure Cloud Shell
- [ ] Azure Functions
- [ ] Other : please specify