GetGroupUsers
Returns the Group Users based on the group Id.
URI GET rest/v1/groups/{groupId}/users
Returns – A GroupUserResponse containing an array of GroupUser Object(s). (See SessionResponse in Appendix B)
Parameters
Name | Type | Description |
---|---|---|
encryptedToken | string | Required. Encrypted Token returned from client authentication. Returns null if encryptedToken has expired or is invalid. |
groupId | string | Required. The group Id. |
Example – C#
[gdlr_notification icon=”none” type=”color-border” border=”#31BEF9″ color=”#000000″]
string uri = “rest/v1/groups/{0}/users”;
string responseString = string.Empty;
JavaScriptSerializer jss = new JavaScriptSerializer();
GroupUsersResponse groupUsersResponse;
uri = string.Format(uri, groupId);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host + uri);
request.Headers.Add(“Authorization” , encryptedToken);
request.Method = “GET”;
request.ContentType = “application/json”;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
groupUsersResponse = jss.Deserialize<GroupUsersResponse>(responseString);
[/gdlr_notification]