Forum Discussion

Rajashekhar Sheelvant's avatar
Rajashekhar Sheelvant
Brass Contributor
Jul 13, 2018

How to Programatically update the RequestAccess of the sharepoint site to Owner Group

Hi All,

Recently there was an enhancement in the "Request Access Setting" in SharePoint.  Now it is possible to assign to the Owner group so that the members of the group receive the access request instead of the individual user email (ref: attached pic).  Now we have the requirement to update this across the tenant using the code/script instead of through UI. Can anyone help me with the code snippet (CSOM, Powershell, PNP-Powershell) etc?

3 Replies

  • paulpascha's avatar
    paulpascha
    Bronze Contributor

    As far as I know there's no API available yet to specify the Site Owners Group to receive access request. Currently you can only configure the e-mail address to receive access requests. 

     

    As with any missing API you could (carefully) consider implementing a solution based on the HTTP POST pattern as described in this blog:

    https://blogs.msdn.microsoft.com/vesku/2013/11/04/ftc-to-cam-advance-http-remote-operations-for-sp2013/

      • Trevor Seward's avatar
        Trevor Seward
        MVP
        As Paul noted it is not possible to accomplish via code as the appropriate method is not exposed.

Resources