| Methods / Administrative Service | |
REST
POST
Registers a user on the AgilePoint system.
https://[domain]:[port]/AgilePointServer/Admin/RegisterUser
https://[domain]:[port]/AgilePointService/Admin/RegisterUser
| Name | Description |
|---|---|
| None | Not Applicable |
| Name | Description |
|---|---|
Department |
|
EMailAddress |
|
FullName |
|
Locale |
|
Manager |
|
OnlineContact |
|
RefID |
|
RegisteredDate |
|
TimeZone |
|
Title |
|
UALExpirationDate |
|
UALNeverExpires |
|
UserName |
|
$("#btnRegisterUser").click(function () {
var JSONObject = {
Department: "HR",
EMailAddress: "Bob@tusca.com",
FullName: "Bob",
Locale: "en-US",
Manager: "demo3\\Bill",
OnlineContact: "",
RefID: "",
RegisteredDate: "\/Date(928149600000+0000)\/",
TimeZone: "",
Title: "",
UALExpirationDate: "\/Date(928149600000+0000)\/",
UALNeverExpires: true,
UserName: "demo3\\Bob"
};
$.ajax({
url: "https://mydomain:9011/AgilePointServer/Admin/RegisterUser",
data: JSON.stringify(JSONObject)
});
});
public String RegisterUser(String Department, String EMailAddress,
String FullName, String Locale, String Manager,
String OnlineContact, String RefID, String TimeZone, String Title,
String UserName, Calendar UALExpirationDate, boolean UALNeverExpires) {
String URI = "http://mydomain:9011/AgilePointServer/Admin/RegisterUser";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
try {
JSONObject postData = new JSONObject();
postData.put("Department", Department);
postData.put("EMailAddress", EMailAddress);
postData.put("FullName", FullName);
postData.put("Locale", Locale);
postData.put("Manager", Manager);
postData.put("OnlineContact", OnlineContact);
postData.put("RefID", RefID);
postData.put("TimeZone", TimeZone);
postData.put("Title", Title);
postData.put("UserName", UserName);
postData.put("RegisteredDate", "/Date("
+ Calendar.getInstance().getTimeInMillis() + ")/");
postData.put("UALExpirationDate",
"/Date(" + UALExpirationDate.getTimeInMillis() + ")/");
postData.put("UALNeverExpires", UALNeverExpires);
return ops.POSTMethod(URI, postData.toString());
} catch (JSONException e1) {
e1.printStackTrace();
}
return "";
}
public string RegisterUser()
{
string URI = "http://mydomain:9011/AgilePointServer/Admin/RegisterUser";
string jsonRequestData = "{
\"Department\":\"\",
\"EMailAddress\":\"abc@mydomain.com\",
\"FullName\":\"AmericaBritainCalifornia\",
\"Locale\":\"\",
\"Manager\":\"\",
\"OnlineContact\":\"\",
\"RefID\":\"\",
\"RegisteredDate\":\"\\/Date(1357803786593+0530)\\/\",
\"TimeZone\":\"\",
\"Title\":\"\",
\"UALExpirationDate\":\"\\/Date(-62135596800000)\\/\",
\"UALNeverExpires\":false,
\"UserName\":\"AP2\\\\abc\"}";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URI, jsonREquestData);
}
None.
The response body is empty.
AgilePoint BPMS v5.0 R2 and higher