Posts

Showing posts with the label SPGroups

CRUD operation on Groups using REST

In the previous post we have seen CRUD operation on SharePoint Users. In this post we are going to discuss about the operations on Groups in SharePoint Library using rest api. Starting with the creation of Groups class in our"RESTApiHelper" namespace. RESTApiHelper.Groups = function (SiteUrl) {     this.SiteUrl = SiteUrl; Get All groups in a Site         this.GetAllGroups = function (doSuccess, doError) {         jQuery.ajax({             url: this.SiteUrl + "/_api/web/sitegroups",             method: "GET",             headers: {                 "accept": "application/json; odata=verbose"             },             success: ...