- Introduction
- Installation
- Getting Started
- Setup the Environment
- Setup the UKG Pro Connection
- Setup the Active Directory Connection
- Delegation of Control
- Setup Rules
- Link (Identity Match)
- Employee Filter
- Auto Provision
- Auto Provision Conditions
- User Logon Name
- User Logon Name Suffix
- Password
- Password Never Expires
- Setup Mappings
- Field Mappings
- Enable Account
- Container
- Network Access Permission
- Custom Attributes
- Group Mappings
- Remove from All Groups
- Working with Expressions
- String Expressions
- Bool Expressions
- Quick Expressions
- Working with Conditional Expressions
- Working with Constants
- Ignore Constant
- IsInsert Constant
- IsUpdate Constant
- IsDisable Constant
- Auto Constant
- Special Methods
- Supported Fields
- Person (UKG)
- Employment (UKG)
- Job (UKG)
- Location (UKG)
- Org Level 1 to 4 (UKG)
- Project (UKG)
- Platform Configuration (UKG)
- User (Active Directory)
- Sending Email to UKG Pro
- Global Catalog / Cross Domain Manager
- Get Business Rule Descriptions
- Notifications
- Detecting Changes
- Send Conditions
- SMTP Settings
- Scheduling
- Viewing the Logs
- Activate a License
- Security
- Introduction
- Installation
- Getting Started
- Setup the Environment
- Setup the UKG Pro Connection
- Setup the Active Directory Connection
- Delegation of Control
- Setup Rules
- Link (Identity Match)
- Employee Filter
- Auto Provision
- Auto Provision Conditions
- User Logon Name
- User Logon Name Suffix
- Password
- Password Never Expires
- Setup Mappings
- Field Mappings
- Enable Account
- Container
- Network Access Permission
- Custom Attributes
- Group Mappings
- Remove from All Groups
- Working with Expressions
- String Expressions
- Bool Expressions
- Quick Expressions
- Working with Conditional Expressions
- Working with Constants
- Ignore Constant
- IsInsert Constant
- IsUpdate Constant
- IsDisable Constant
- Auto Constant
- Special Methods
- Supported Fields
- Person (UKG)
- Employment (UKG)
- Job (UKG)
- Location (UKG)
- Org Level 1 to 4 (UKG)
- Project (UKG)
- Platform Configuration (UKG)
- User (Active Directory)
- Sending Email to UKG Pro
- Global Catalog / Cross Domain Manager
- Get Business Rule Descriptions
- Notifications
- Detecting Changes
- Send Conditions
- SMTP Settings
- Scheduling
- Viewing the Logs
- Activate a License
- Security
Enable Account
The Enable Account mapping allows you to control whether the user account is enabled or disabled.
This is a bool mapping that must result in either a true or false.
- A true result will set the user account to enabled
- A false result will set the user account to disabled
The Enable Account field mapping can be setup in such a way that when an employee is Terminated in UKG Pro, the matching user account in AD is then automatically disabled.
This requirement can be achieved by creating an expression for the Enable Account mapping that looks at the employees status in UKG Pro, and if the employee is active (A), then set the Enable Account mapping to true, and if they are not Active, then set the Enable Account mapping to false, which will result in the user account being disabled in AD.
This expression will only return true, if the employees status code is A (Active). All other employee status codes will result in a false. If the employee status code is T (Terminated) or L (Leave), the expression will return a false and the user record will be disabled.
If you wanted to implement logic that states to set the account to enabled for all non-terminated employees (A or L), and set the account to disabled for all terminated employees. Then use the expression:
This expression will return true, if the employees status code is not T (Terminated). All employees with a status code of either A (Active) or L (Leave) will result in a true and an enabled user account. All employees with an employee status code of a T (Terminated) will result in a false and a disabled user account.