I am looking for JSOM or REST option to update SharePoint user group settings who can edit the membership for the group.


2 Answers 2


Exactly which settings do you want to update?

Microsoft provided detailed documentation on Users, groups, and roles using REST API in below article:

Users, groups, and roles REST API reference.


The following code for your reference.

<script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
function changeGroup(){
    var groupName="LZ Members";
    var allowMembersEditMembership=true;
        url: _spPageContextInfo.siteAbsoluteUrl+"/_api/web/sitegroups/getByName('"+groupName+"')",
        type: "POST",
        data: JSON.stringify({ '__metadata': { 'type': 'SP.Group' }, 'AllowMembersEditMembership': allowMembersEditMembership }),
        headers: {
            "Accept": "application/json;odata=verbose",
            "content-type":"application/json; odata=verbose",
            "X-RequestDigest": $("#__REQUESTDIGEST").val(),
            "X-HTTP-Method": "MERGE",
            "If-Match": "*"
        success: function(){
        error: function(err){
<input type="button" value="ChangeGroup" onclick="changeGroup()"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.