> Automation > Objects > Active Directory > Search AD Accounts

Search AD Accounts

Searches Active Directory accounts with given attributes.



Input Parameters

Name Type Required Description
Domain String Yes The domain to search.
OU String No Organizational unit container where the user object is contained. If empty, the user object in the standard users container for the domain will be searched.
AccountExpired Boolean No Search for expired accounts.
AccountDisabled Boolean No Search for disabled accounts.
LockedAccount Boolean No Search for locked accounts.
Only computer accounts Boolean No Only search computer accounts.
Only user accounts Boolean No Only search user accounts.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
Domain String Yes Abc.com
OU String No OU=Marketing,DC=ABC,DC=com
Account Type Selector Yes User & Computer.
Account Expired     Optional query Active Directory for Expired, Disabled and Locked accounts.
Account Disabled
Locked Account