SP.Group.autoAcceptRequestToJoinLeave property (sp.js)
Gets or sets a value that indicates whether the request to join or leave the group can be accepted automatically.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.Group.get_autoAcceptRequestToJoinLeave ()
var value = SP.Group.set_autoAcceptRequestToJoinLeave ()
Return value
Type: Boolean
true if the request to join or leave the group can be accepted automatically; otherwise, false.
REST resource endpoint
See Group resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/autoAcceptRequestToJoinLeave
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/autoAcceptRequestToJoinLeave
GET syntax
GET http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/autoAcceptRequestToJoinLeave