Is AD Account Locked activity

The Is AD Account Locked activity determines whether an Active Directory user account is locked.

An account may be locked automatically if a user enters an incorrect password more times than allowed by the Active Directory security policy. You can unlock an account using the Unlock AD User Account activity.

To access this activity in the workflow editor, select the Custom tab, and then navigate to Custom Activities > Active Directory.
Note: This activity replaces an AD activity by the same name available in prior releases. If you have a workflow that uses the deprecated activity, your workflow will continue to work normally after upgrading to Instanbul. However, all new workflows must use the custom version of this activity, which was built with the PowerShell activity designer.

Input variables

Table 1. Is AD Account Locked input variables
Variable Description
DomainController IP address of the domain controller machine.
User The sAMAccountName of the Active Directory user account.

Output variables

Table 2. Is AD Account Locked output variables
Variable Description
result Either success or failure.
errorMessage The executionResult.errorMessages from the Activity designer parsing sources.
output The query result.

Conditions

Table 3. Is AD Account Locked conditions
Condition Description
Locked The AD account is locked.
Unlocked The AD account is unlocked.
Failure An error occurred while processing the query. Additional details may be available in the workflow log.