The ADUser table contains all users who belong to Active Directory.

ColumnTypeDescription
ObjectGUIDStringUser's UUID (primary key).
UserPrincipalNameStringUser's principal name.
SamAccountNameStringUser's Sam Account name.
DistinguishedNameStringUser's distinguished name.
MailStringUser's email address.
NameStringUser's login name.
EnabledBooleanWhether user is enabled.
LockedBooleanWhether user is locked.

Example Query

The following query searches the ADUser table for users with "test" in their login name.

{Script: "Select * from ADUser 
    WHERE Name LIKE '%test%' 
    ORDER BY Name COLLATE NOCASE"
}

The query returns all users with "test" in their login name.

ADUser table query response:

...
"FullCount": 2,
"Results": [
  {
    "Entities": [
      {
        "Type": "User",
        "Key": "********-****-****-****-************",
        "IsForeignKey": true
      },
      {
         "Type": "ADUser",
        "Key": "********-****-****-****-************",
        "IsForeignKey": false
       }
    ],
    "Row": {
      "DistinguishedName": "CN=adam test,OU=VPN - Temporary,DC=idaptive,DC=com",
      "Locked": null,
      "Mail": "[email protected]",
       "Name": "adam test",
      "UserPrincipalName": "[email protected]",
      "ObjectGUID": "********-****-****-****-************",
      "SamAccountName": "adam.test",
       "Enabled": null
    }
  },
  {
    "Entities": [
      {
        "Type": "User",
        "Key": "********-****-****-****-************",
        "IsForeignKey": true
      },
      {
        "Type": "ADUser",
        "Key": "********-****-****-****-************",
         "IsForeignKey": false
      }
    ],
    "Row": {
      "DistinguishedName": "CN=apptest,OU=Test Account,DC=idaptive,DC=com",
      "Locked": null,
      "Mail": null,
      "Name": "apptest",
      "UserPrincipalName": "[email protected]",
      "ObjectGUID": "********-****-****-****-************",
      "SamAccountName": "apptest",
      "Enabled": null
    }
  }
 
]

See Also