Endpoint

/v1/ad/usernames/{username}/objects/

GET

Return any AD account objects that have the given sAMAccountName.

Parameters

Name Description Required
username The sAMAccountName to use to look up AD users or groups. Yes

Response

Codes

Code Description
200 Return value on success

Schema

{
  "type": "array",
  "items": {
    "description": "ad_ldap_object",
    "type": "object",
    "properties": {
      "dn": {
        "description": "dn",
        "type": "string"
      },
      "sid": {
        "description": "sid",
        "type": "string"
      },
      "uid": {
        "description": "uid",
        "type": "number"
      },
      "gid": {
        "description": "gid",
        "type": "number"
      },
      "name": {
        "description": "name",
        "type": "string"
      },
      "groups": {
        "type": "array",
        "items": {
          "description": "groups",
          "type": "string"
        }
      },
      "primary_group_sid": {
        "description": "primary_group_sid",
        "type": "string"
      },
      "classes": {
        "type": "array",
        "items": {
          "description": "classes",
          "type": "string"
        }
      }
    }
  }
}