Methods / Group, Role, and Rights |
REST
POST
Adds a group to the AgilePoint system.
https://[domain]:[port]/AgilePointServer/Admin/AddGroup
https://[domain]:[port]/AgilePointService/Admin/AddGroup
Name | Description |
---|---|
None | Not Applicable |
Name | Description |
---|---|
Description |
|
Enabled |
|
GroupName |
|
ResponsibleUser |
|
$("#btnAddGroup").click(function () { var JSONObject = { GroupName: "test1234", Description: "test", ResponsibleUser: "demo3\\brian.lucas", Enabled: true }; $.ajax({ url: "https://mydomain:9011/AgilePointServer/Admin/AddGroup", data: JSON.stringify(JSONObject) }); });
public String AddGroup(String GroupName, String Description, String ResponsibleUser, boolean Enabled) { String URI = "http://mydomain:9011/AgilePointServer/Admin/AddGroup"; 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("ResponsibleUser", ResponsibleUser); postData.put("Enabled", Enabled); return ops.POSTMethod(URI, postData.toString()); } catch (JSONException e1) { e1.printStackTrace(); } return ""; }
WFGroup object represented the group that is added.
{ "CreatedBy":"demo3\\administrator", "CreatedDate":"\/Date(1394323861255+0000)\/", "Description":"test", "Enabled":true, "LastModifiedBy":null, "LastModifiedDate":"\/Date(-62135568000000+0000)\/", "Name":"test1234", "ResponsibleUser":"demo3\\brian.lucas", "Source":null }
AgilePoint BPMS v5.0 R2 and higher