Configure Automated Directory Cleanup
Automated directory cleanup configuration establishes the workflows, permissions, approval roles, and account store settings required to systematically identify, stage, and retire stale user accounts across managed directories.
Configuration Steps
| Step | Details |
|---|---|
| 1 - Create an EmpowerID Person account | Person account used by the system to initiate workflows for directory cleanup |
| 2 - Grant access to directory cleanup workflows | Grant the person account Initiator access to SubmitAccTerminationsApproval and TerminateAccountAdvanced workflows |
| 3 - Create the approval Management Role | Management Role containing people who receive notification of pending terminations, including managers of users with accounts marked for deletion and administrative users with authority to approve disabling and termination of stale accounts |
| 4 - Review and configure cleanup Sets | Review default SetGroups containing Sets (SQL queries) specifying criteria for accounts classified as stale: AccountGetPendingTerminationBeforeProcessing, AccountGetPendingTerminationNotProcessed, and AccountGetPendingTerminationProcessed |
| 5 - Configure workflow parameters | Configure parameters for TerminateAccountAdvanced and SubmitAccountTerminations workflows, including AdminManagementRoleGuids, notification templates, timing settings, and behavioral options |
| 6 - Configure resource system parameters | Configure directory cleanup parameters for each resource system implementing automated directory cleanup |
| 7 - Configure account store settings | Configure directory cleanup settings for each account store implementing automated directory cleanup |
Step 1 - Create a Person Account
- Navigate to Identity Administration → People.
- Click Create Person Simple Mode.
- In the Create Person Request form, configure the following:
- First Name and Last Name – Enter names identifying the account purpose (e.g., "Terminate AccInitiator")
- eMail – Optional
- Personal Email – Optional
- Primary Role and Location:
- Click Select a Role and Location
- Search for and select the appropriate Business Role
- Click the Location tab
- Search for and select the EmpowerID Location
- Click Select
- Manager – Optional
- Comments or Justification – Describe the account purpose
- Click Save.
Step 2 - Grant Workflow Access
Grant SubmitAccTerminationsApproval Access
- Navigate to Object Administration → Workflows.
- Search for
SubmitAccTerminationsApprovaland click the Display Name link. - On the Workflow Details page, expand the Who Has Access accordion.
- Configure workflow access:
- Select Person from the To which type of actor do you wish to assign access? dropdown
- Click Add New Assignee
- Search for and select the Person account created above
- Select Initiator as the Access Level
- Click Save
- Verify the Person account appears in the Who Has Access grid.
Grant TerminateAccountAdvanced Access
- Click the Find Workflows breadcrumb at the top of the page.
- Search for
TerminateAccountAdvancedand click the Display Name link. - On the Workflow Details page, expand the Who Has Access accordion.
- Configure workflow access:
- Select Person from the To which type of actor do you wish to assign access? dropdown
- Click Add New Assignee
- Search for and select the Person account created above
- Select Initiator as the Access Level
- Click Save
Step 3 - Create Approval Management Role
- Navigate to Role Management → Management Roles.
- Click Create Management Role.
- In the Management Role Details form, configure the following:
- Name – Enter the role name
- Display Name – Enter the display name
- Role Type – Select Generic
- Parent Definition – Select Blank Management Role Definition
- Creation Location – Click Select a Location, search for and select the creation location
- Publish in IT Shop – Enable to make the role requestable; otherwise disable
- High Security – Leave disabled
- Description – Describe the role purpose
- Instructions – Optional
- eMail – Optional
- Click Save.
- After EmpowerID creates the role, click the Advanced tab.
- Expand the ADVANCED accordion.
- Locate and copy the Management Role GUID for use in resource system configuration.
Step 4 - Review and Configure SetGroups
EmpowerID provides default SetGroups with SQL queries defining staleness criteria. These SetGroups can be used as provided, modified to meet organizational requirements, or used as templates for additional SetGroups supporting multiple directories.
Review AccountGetPendingTerminationBeforeProcessing
- Navigate to Role Management → Query-Based Collections (SetGroup).
- From the Queries (Sets) tab, search for
AccountGetPendingTerminationBeforeProcessingand click the Name link. - Review the query in the Filter section.
- If the filter meets organizational staleness criteria, proceed to the next SetGroup; otherwise, click Edit, modify the query, and save.
Review AccountGetPendingTerminationNotProcessed
- Return to the Find SetGroup page.
- Search for
AccountGetPendingTerminationNotProcessedand click the Name link. - Review the query in the Filter section.
- If the filter meets organizational requirements, proceed to the next SetGroup; otherwise, click Edit, modify the query, and save.
Review AccountGetPendingTerminationProcessed
- Return to the Find SetGroup page.
- Search for
AccountGetPendingTerminationProcessedand click the Name link. - Review the query in the Filter section.
- If the filter meets organizational requirements, proceed to workflow configuration; otherwise, click Edit, modify the query, and save.
Step 5 - Configure Workflow Parameters
Configure SubmitAccountTerminations Workflow Parameters
-
Navigate to Object Administration → Workflows.
-
Search for
SubmitAccountTerminationsand click the Display Name link. -
On the Workflow Details page, expand the Request Workflow Parameters accordion.
-
Edit each parameter value as needed:
AdminManagementRoleGuids– GUID of the approval Management Role created aboveDeleteAccountDaysAfterMove– Days after staging before account deletionDisableAccountOnMove– Boolean specifying whether to disable accounts when moved to staging OUEmailTemplateAdminMoveNotification– Email template for admin move notifications (use default unless custom template exists)EmailTemplateAdminPreMoveNotification– Email template for admin pre-move notifications (use default unless custom template exists)EmailTemplateManagerMoveNotification– Email template for manager move notifications (use default unless custom template exists)EmailTemplateManagerPreMoveNotification– Email template for manager pre-move notifications (use default unless custom template exists)EmailDaysXBeforeMove– Days before account move to send notificationsMoveAccountXDaysDisabled– Days an account must be disabled before moving to staging OUMoveAccountXDaysNoLogin– Days without login before account becomes eligible for staging
Configure TerminateAccountAdvanced Workflow Parameters
-
Navigate to Object Administration → Workflows.
-
Search for
TerminateAccountAdvancedand click the Display Name link. -
On the Workflow Details page, expand the Request Workflow Parameters accordion.
-
Edit each parameter value as needed:
AdminManagementRoleGuids– GUID of the approval Management RoleEmailTemplateAdminDeletionNotification– Email template for admin deletion notifications (use default unless custom template exists)EmailTemplateManagerDeletionNotification– Email template for manager deletion notifications (use default unless custom template exists)NotifyAdminManagementRole– Set totrueto send notifications to Management Role membersNotifyManager– Set totrueto send notifications to managers of affected users
Step 6 - Configure Resource System Parameters
-
Navigate to Admin → Applications and Directories → Account Stores and Systems.
-
Select the Resource Systems tab.
-
Search for the resource system of the target account store and click the Display Name link.
-
Click the Resource System tab.
-
Expand the Configuration Parameters accordion.
-
Click Edit for each parameter and enter the appropriate values:
ApprovalApproverManagementRoleGUID– GUID of the approval Management RoleSubmitAccountTerminationsApprovalInitiatorPersonID– Person ID of the SubmitAccountTerminationsApproval workflow initiatorTaskApprovalPendingStatus– Leave set tofalse(set automatically by Submit Account Terminations workflow)TerminationAccountAdvancedInitiatorPersonID– Person ID of the TerminateAccountAdvanced workflow initiatorTerminationBeforeProcessingSetGroupGUID– GUID of the AccountGetPendingTerminationBeforeProcessing SetGroupTerminationNotProcessedSetGroupGUID– GUID of the AccountGetPendingTerminationNotProcessed SetGroupTerminationProcessedSetGroupGUID– GUID of the AccountGetPendingTerminationProcessed SetGroupThresholdOnAccounts– Maximum number of accounts processed simultaneously
-
Save changes for each parameter.
Step 7 - Configure Account Store Settings
- Navigate to Admin → Applications and Directories → Account Stores and Systems.
- Select the Account Stores tab.
- Search for the target account store and click the Account Store link.
- From the Account Store tab, click the Edit link (pencil icon) to enable Edit mode.
- Scroll to the Directory Cleanup Settings section and configure:
- Directory Clean Up Enabled – Select to enable automated directory cleanup for the account store
- Report Only Mode (No Changes) – Select to generate reports without executing cleanup actions (all matching accounts are set to Termination Pending)
- OU to Move Stale Accounts – Click Select an External Location, search for and select the organizational unit for staging accounts (Active Directory and LDAP account stores only)
- Click Save.
After completing the configuration, the Submit Account Terminations permanent workflow claims account stores where Directory Clean Up is enabled. The workflow processes accounts based on the SetGroup criteria, threshold settings, and notification parameters configured above. When the number of accounts reaches the specified threshold, the Submit Account Terminations Approval workflow is invoked to route approval tasks to the designated Management Role.