I want to get group id in single call. I am using below URL
/_api/web/sitegroups/getbyname('Approvers')
it is returning object. I want to apply filter to above url to get group id.
Technology Tips and News
I want to get group id in single call. I am using below URL
/_api/web/sitegroups/getbyname('Approvers')
it is returning object. I want to apply filter to above url to get group id.
Hi Rahul,
You have to use the REST API url like below to get ID,
_api/web/sitegroups/getbyname('Approvers')?$select=id
var url = "<<siteurl>>/_api/web/sitegroups/getbyname('Approvers')?$select=id"; $.ajax({ url: url, method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: function (data) { console.log(data.d.Id); }, error: function (data) { console.log(data); } });