Search AD Accounts
Searches Active Directory accounts with given attributes.
Privileges
Normal
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. |
Account Type | Selector | Yes |
Select the type of objects to be searched as one of the following:
|
AccountExpired | Boolean | No | (Optional) Search for expired accounts. |
AccountDisabled | Boolean | No | (Optional) Search for disabled accounts. |
LockedAccount | Boolean | No | (Optional) Search for locked accounts. |
Output Parameters
Name | Type | Description |
---|---|---|
AccountList | Collection | The list of accounts within the searched domain. |
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 |