Forum Discussion
Fouziya
May 31, 2018Copper Contributor
Set SharePoint access requests to owner group
How can I set the Access Request Settings to the Owner group on an O365 SharePoint site ? I could not find any method in PnP PowerShell or CSOM... Set-PnPRequestAccessEmails only allows to set email...
Markus Hanisch
Aug 07, 2019Brass Contributor
To enable this email setting and send the notification to the owner, use the below PnP PowerShell snippets .
- $cred = Get-Credential
- Connect-PnPOnline -Url https://.sharepoint.com -Credential $cred
- Set-PnPRequestAccessEmails -Emails ktskumar@<tenant>.onmicrosoft.com
- Set-PnPRequestAccessEmails -Emails @( ktskumar@<tenant>.onmicrosoft.com; user1@<tenant>.onmicrosoft.com )
- $cred = Get-Credential
- Connect-PnPOnline -Url https://.sharepoint.com -Credential $cred
- Get-PnPRequestAccessEmails
Source:
https://www.c-sharpcorner.com/blogs/allow-access-requests-email-settings-in-sharepoint-site-using-pnp-powershell