How can we add a rule to disable accounts once they are set to inactive in UKG?
When an employee is terminated in UKG Pro, we want to disable the user account in AD.
What rule or mapping do we change for this behavior?
How can we add a rule to disable accounts once they are set to inactive in UKG?
When an employee is terminated in UKG Pro, we want to disable the user account in AD.
What rule or mapping do we change for this behavior?
The enabling or disabling of user accounts in AD is controlled by the Enable Account mapping.
This mapping should be set-up so that if an employee is active in UKG Pro, then the Enable Account value is true.
When an employee is terminated in UKG Pro, then the Enable Account value is false.
You can achieve this behavior by setting the expression for Enable Account to:
Employment.EmployeeStatusCode == 'A'
When the sync process runs, this expression will evaluate to true for active employees and result in the AD user account being set to enabled.
When the sync process runs, this expression will evaluate to false for terminated employees and result in the AD user account being set to disabled.
Also, if you want you can include on-leave employees in the expression, so that any employee who is active or employees on-leave, are enabled. Terminated employees should be disabled.
Employment.EmployeeStatusCode == 'A' || Employment.EmployeeStatusCode == 'L'
This will result in any active or on-leave employee being enabled and any terminated employee being disabled.