CRUD operation on Users using REST
In the previous post we have seen CRUD operation on SharePoint Folders. In this post we are going to discuss about the operations on users in SharePoint Library using rest api. Starting with the creation of Users class in our"RESTApiHelper" namespace. RESTApiHelper.Users = function (SiteUrl) { this.SiteUrl = SiteUrl; Get all users in site this.GetAllUsers = function (doSuccess, doError) { jQuery.ajax({ url: this.SiteUrl + "/_api/web/SiteUsers", method: "GET", headers: { "accept": "application/json; odata=verbose" }, success: doSuccess, error: doError }); } Get specific user by login id this.GetUserByLoginId = function (LoginId, doSuccess, doError) { jQuery.ajax({ url: this.SiteUrl + "/_api/web/SiteUsers(@v)?@v='" + encodeURIComponent("i:0#.w|" +