Methods / Group, Role, and Rights |
REST
POST
Adds a user as a member of a group.
https://[domain]:[port]/AgilePointServer/Admin/AddGroupMember
https://[domain]:[port]/AgilePointService/Admin/AddGroupMember
Name | Description |
---|---|
None | Not Applicable |
Name | Description |
---|---|
ClientData |
|
Description |
|
Enabled |
|
GroupName |
|
UserName |
|
These properties are based on the class AddGroupMemberHelper
$("#btnAddGroupMember").click(function () { var JSONObject = { GroupName: "test1234", Description: "test123", UserName: "demo3\\brian.lucas", ClientData: null, Enabled: true }; $.ajax({ url: "https://mydomain:9011/AgilePointServer/Admin/AddGroupMember", data: JSON.stringify(JSONObject) }); });
public String AddGroupMember(String GroupName, String Description, String UserName, String ClientData, boolean Enabled) { String URI = "http://mydomain:9011/AgilePointServer/Admin/AddGroupMember"; HTTPOperations ops = new HTTPOperations(domain, this.userName, password, appID, locale); try { JSONObject postData = new JSONObject(); postData.put("GroupName", GroupName); postData.put("Description", Description); postData.put("UserName", UserName); postData.put("ClientData", ClientData); postData.put("Enabled", Enabled); return ops.POSTMethod(URI, postData.toString()); } catch (JSONException e1) { e1.printStackTrace(); } return ""; }
public string AddGroupMember(string groupname, string data) { string URL = "http://mydomain:9011/AgilePointServer/Admin/AddGroupMember"; string jsonRequestData = "{ \"GroupName\":\"" + groupname + "\", \"Description\":\"" + "test" + "\", \"UserName\":\"" + data + "\", \"ClientData\":\"" + null + "\", \"Enabled\":\"true\"}"; HTTPOperations ops = new HTTPOperations(domain, this.userName, password, appID, locale); return ops.POSTMethod(URL, jsonRequestData); }
WFGroupMember object that contains the data for the new group member.
{ "ClientData": null "CreatedBy": "DEMO3\administrator" "CreatedDate": "\/Date(928149600000)\/", "Description": "test123" "Enabled": true "Member": "demo3\\brian.lucas" "Name": "test1234" }
AgilePoint BPMS v5.0 R2 and higher