| Methods / Group, Role, and Rights | |
REST
POST
Adds a user or a group to a role.
https://[domain]:[port]/AgilePointServer/Admin/AddRoleMember
https://[domain]:[port]/AgilePointService/Admin/AddRoleMember
| Name | Description |
|---|---|
| None | Not Applicable |
| Name | Description |
|---|---|
Assignee |
|
AssigneeType |
|
ClientData |
|
ObjectID |
|
ObjectType |
|
RoleName |
|
These properties are based on the class AddRoleMemberHelper
$("#btnAddRoleMember").click(function () {
var JSONObject = {
RoleName: "Administrators", Assignee: "DEMO3\HR",
AssigneeType: "User",
ClientData: null, ObjectID: "00000000000000000000000000000000",
ObjectType: "All"
};
$.ajax({
url: "https://mydomain:9011/AgilePointServer/Admin/AddRoleMember",
data: JSON.stringify(JSONObject)
});
});
public String AddRoleMember() {
String URI = "https://mydomain:9011/AgilePointServer/Admin/AddRoleMember";
HTTPOperations ops = new HTTPOperations(domain, userName,
password, appID, locale);
JSONObject postData = new JSONObject();
postData.put("RoleName", "Regional Managers");
postData.put("Assignee", "DEMO3\\HR");
postData.put("AssigneeType", "User");
postData.put("ClientData", "");
postData.put("ObjectID", "00000000000000000000000000000000");
postData.put("ObjectType", "All");
return ops.POSTMethod(URI, postData.toString());
return "";
}
public string AddRoleMember()
{
string URL = "https://mydomain:9011/AgilePointServer/Admin/AddRoleMember";
string jsonRequestData = "{
\"RoleName\":\"" + "Administrators" + "\",
\"Assignee\":\"" + "demo3\\\\brian.lucas" + "\",
\"AssigneeType\":\"" + "User" + "\",
\"clientData\":\"" + null + "\",
\"ObjectID\":\"" + "00000000000000000000000000000000" + "\",
\"ObjectType\":\"" + "All" + "\"}"
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URL, jsonRequestData);
}
WFRoleMember object.
{
"Assignee": "DEMO3\HR"
"AssigneeType": "User"
"ClientData": null
"CreatedBy": "demo3\\brian.lucas"
"CreatedDate":" \/Date(928149600000)\/",
"ObjectID": "00000000000000000000000000000000"
"ObjectName": null
"ObjectType": "All"
"RoleName": "Administrators"
}
AgilePoint BPMS v5.0 R2 and higher