- 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
- 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
- Notifications
- Detecting Changes
- 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
- 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
- Notifications
- Detecting Changes
- SMTP Settings
- Scheduling
- Viewing the Logs
- Activate a License
- Security
Working with Conditional Expressions
You can use conditional expressions in your mappings to evaluate UKG or AD fields before determining which value to use.
A conditional expression uses a Bool expressions to evaluate data, and then depending on the outcome of the Bool expression, it will determine which value to use.
Conditional expressions are evaluated in order from the top down. The first condition that is a match (the condition is true), will be used as the output.
Here are a few examples of commonly used string conditional expressions:
Auto Provision Conditions Rule
Employment.EmployeeStatusCode == 'A'
All active employees will be provisioned
Employment.EmployeeStatusCode == 'L'
All on-leave employees will be provisioned
Employment.EmployeeStatusCode != 'T'
All non-terminated employees will be provisioned
Enable Account Mapping
Employment.EmployeeStatusCode.OneOf('A,L')
All active or on-leave employees will be enabled
Employment.EmployeeStatusCode != 'T'
Only non-terminated employees will be enabled
Container Mapping
Person.AddressState.OneOf('FL,GA')
All employees living in Florida or Georgia will be provisioned or moved to the OU=Southeast container
Person.AddressState.OneOf('NY,MA')
All employees living in New York or Massachusetts will be provisioned or moved to the OU=Northeast container
Person.AddressState.OneOf('IL,MO')
All employees living in Illinois or Missouri will be provisioned or moved to the OU=Midwest container