Unregister User

API Type

REST

HTTP Method

POST

Description

Removes a user's registration from the AgilePoint system. Note that this call does not remove the user from the local Windows system or the domain controller.

URL Format (On Premises)

https://[domain]:[port]/AgilePointServer/Admin/UnregisterUser

URL Format (AgilePoint for Azure)

https://[domain]:[port]/AgilePointService/Admin/UnregisterUser

Request Parameters

Name Description
None Not Applicable

Request Body Properties

Name Description

userName

Definition:
The user name for the user.
Type
string
Allowed Values:
A valid user name for a registered AgilePoint user.

JavaScript Code Example

$("#btnUnregisterUser").click(function () {

  var JSONObject = { userName: "sg1" };

  $.ajax({
    url: "https://mydomain:9011/AgilePointServer/Admin/UnregisterUser",
    data: JSON.stringify(JSONObject)
  });

});

Java Code Example

public String UnregisterUser(String userName) {

  String URI = "http://mydomain:9011/AgilePointServer/Admin/UnregisterUser";

  HTTPOperations ops = new HTTPOperations(domain, this.userName,
                       password, appID, locale);

  try {
    JSONObject postData = new JSONObject();
    postData.put("userName", userName);

    return ops.POSTMethod(URI, postData.toString());
  } catch (JSONException e1) {
    e1.printStackTrace();
  }
  return "";
}

C# Code Example

public string UnregisterUser(string userName)
  {
    string URI = "http://mydomain:9011/AgilePointServer/Admin/UnregisterUser";

    string jasonRequestData = "{\"userName\":\"" + userName + "\"}";

    HTTPOperations ops = new HTTPOperations(domain, this.userName, 
                         password, appID, locale);

    return ops.POSTMethod(URI, jasonRequestData);
  }

Output

None.

JSON Response Body Example

The response body is empty.

Supported Versions

AgilePoint BPMS v5.0 R2 and higher