Forum Discussion

Fouziya's avatar
Fouziya
Copper Contributor
May 31, 2018

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 emails, not to select the site owner group.

 

The option is available through the UI though :

 

21 Replies

  • EricD35's avatar
    EricD35
    Copper Contributor

    Fouziya 

    Hi,

    Did you find a solution for your problem ?

    I have exactly the same problem to solve. I need to define RequestAcces on the Owner Group, not on a specific email...

    Eric.

  • Fouziya 

     

    To enable this email setting and send the notification to the owner, use the below PnP PowerShell snippets .
     
    1. $cred = Get-Credential    
    2. Connect-PnPOnline -Url https://.sharepoint.com -Credential $cred    
    3. Set-PnPRequestAccessEmails -Emails ktskumar@<tenant>.onmicrosoft.com  
    To add multiple emails to the settings, use the below cmdlet.
     
    1. Set-PnPRequestAccessEmails -Emails @( ktskumar@<tenant>.onmicrosoft.com; user1@<tenant>.onmicrosoft.com )    
    The below PnP Powershell snippet is used to get the emails associated to allow access requests settings.
     
    1. $cred = Get-Credential      
    2. Connect-PnPOnline -Url https://.sharepoint.com -Credential $cred      
    3. Get-PnPRequestAccessEmails 

     

    Source:
    https://www.c-sharpcorner.com/blogs/allow-access-requests-email-settings-in-sharepoint-site-using-pnp-powershell 

  • It's set to Site Owner Group by default . You don't need to set it. If you need to send the request to a different email address  you can still do it using the same powershell.

    • Fouziya's avatar
      Fouziya
      Copper Contributor

      Nop. On my tenant by default access requests are defined to be sent to the user who created the site. Quite annoying when you have to handle a large number of sites. 

      • Deleted's avatar
        Deleted

        StephenRice - I know you were looking for feedback and pretty involved in the Access Request piece, have any insights on this one? 

Resources