Step 1: Create the workflow
- In the Active Roles MMC, navigate to Configuration | Policies | Workflow
- Right click the workflow container of choice, and select New > Workflow
- Provide an appropriate Name and Description for your workflow
- For the Workflow Type, select Upon a request to change data in the directory (change workflow)
- Click Finish to complete
Step 2: Configure the Workflow options and start conditions
- Click on the newly create workflow, the activities pane should appear to the right
- Towards the top, select the Workflow options and start conditions drop-down
- Click the Configure button
- Click the Select operation button
- Select Deprovision
- Click Finish
- Click OK
We now have a workflow that will trigger automatically when any user is deprovisioned. Next, we will add logic to search and locate corresponding privileged admin accounts, if any exists. In the following example, the admin accounts have the same sAMAccountName as the standard account, followed up with .admin (example: Standard account: jsmith / Privileged account: jsmith.admin).
Step 3: Configure the Search activity
- Drag a Search activity from the left hand sidebar, onto the line directly below/after the Operation Execution activity in the workflow
- Double-Click on the newly created Search for objects activity to open it's Properties
- Click on the Scope and filter tab on the left
- In the Find: drop-down menu, change the selection to Users
- Configure the When searching the Organizational Unit or container: option to Retrieve any objects held in the Organizational Unit or container
- In the Search options: Filter pane, click the green + mark to add a search condition
- Click on the red Configure condition to evaluate text
- Select Logon Name (pre-Windows 2000) (sAMAccountName) from the menu
- Click on the red Define value to compare to text
- Select Value generated by rule expression from the menu
- Click Add entry and select Property of object from workflow data context... from the menu
- Next to Target object: click on Click to choose and select Workflow Target
- Next to Target Property: click on Click to choose and select Logon Name (pre-Windows 2000) (sAMAccountName)
- Click OK
- Click Add entry and Text String
- Input .admin
- Click OK and then OK again
At this point the workflow now has the ability to search for any .admin accounts that correspond to the standard account. Next we will add a step that will deprovision any objects found in the search results.
Step 4: Add the deprovisioning step
- Drag a Deprovision activity from the left hand sidebar, onto the Drop Activities Here text inside of the Search activity box
- Double-Click on the newly created Deprovision activity to open it's Properties
- Click on Workflow Target and select Object found by search activity from the menu
- Click OK
- Click Save Changes
Now that we have added the Deprovision activity, search results will then be passed on and deprovisioned as well. Please be sure to modify the Filter in step 3 to match the formatting of the privileged accounts in your environment.