Triggering an Action When Moving a User from One OU to Another
ActiveRoles Server can be configured to trigger actions based on an Administrator moving a User object from one OU to another. This can both greatly streamline and deeply integrate custom functionality into an environment.
Browse to Configuration | Policies | Workflow. Right click and select New Workflow.
Select Configure under Workflow options and start conditions
Under Operation Conditions, choose Select operation and change to a Move operation.
Using Initator Conditions, it is possible to configure it so that the Workflow is only triggered if the above Operation condition is performed by a particular User or Group, or if it is performed on objects contained in a particular OU.
Filtering Conditions is the most critical section:
Choose Property of object from workflow data context. The Target object is the Destination OU, and the Target property is Distinguished Name (under More Choices).
Leave the condition as equals.
Choose Object identified by DN-value rule expression...
Add a Property of object from Workflow data context...
The Target object is Fixed object in directory... and then browse for the desired target OU. The Target property is again Distinguished Name (under More Choices).
Drag-and-drop the desired action into the Workflow, underneath Operation execution: Move User