Get Domain Groups

API Type

REST

HTTP Method

POST

Description

Retrieves all the domain group objects.

URL Format (On Premises)

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

URL Format (AgilePoint for Azure)

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

Request Parameters

Name Description
None Not Applicable

Request Body Properties

Name Description

Filter

Definition:
A filter term for groups that is wildcard-enabled.
Type
string
Allowed Values:
A string in the format (name=[my wildcard filter]).

LDAPPath

Definition:
The LDAP path to the domain.
Type
string
Allowed Values:
A valid LDAP path.

If the value is null, the AgilePoint Server machine domain will be used.

JavaScript Code Example

$("#btnGetDomainGroups").click(function () {
  var JSONObject = {
    LDAPPath: "LDAP:\/\/DC=DEMO3,DC=com",
    Filter: ""
  };
  $.ajax({
    url: "https://mydomain:9011/AgilePointServer/Admin/GetDomainGroups",
    data: JSON.stringify(JSONObject)
  });
});

Java Code Example

public String GetDomainGroups(String LDAPPath, String Filter) {

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

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

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

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

Output

Array of KeyValue objects. If the specified group is not found, the output is null.

JSON Response Body Example

[{
  "Key":"String content",
  "Value":"String content"
}]

Supported Versions

AgilePoint BPMS v5.0 R2 and higher