To search for disabled users:
In a Workflow add a Search operation to the Workflow. Next, open the Search operation by double clicking it and performing the following steps:
- Select the Scope and Filter tab.
- In the Find drop down selection box select Users.
- Select the radial button for Retrieve any objects held in the Organizational Unit or Container.
- Specify for Filter the attribute userAccountControl set to bitwise and, with a string value of 2. Click OK, and then select the Save button on the workflow.
To search for enabled users, use the same steps and filter as above but convert the condition group to a NOT AND group.
- Click on the green line (not on the green plus) and choose Covert condition group to... | | NOT AND group