Forum Discussion
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
- paulpaschaBronze 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/
- Rajashekhar SheelvantBrass Contributor
Thank you paulpascha for your reply. It is certainly possible to assign through the UI. I am looking to perform this using the code.
- As Paul noted it is not possible to accomplish via code as the appropriate method is not exposed.