IsUpdate Constant

IsUpdate is a constant that can be used in conditional expressions to determine if the user record already exists and will be updated.

Here are a few examples of IsUpdate being used:

Ignore the Container mapping if this is an update
When IsUpdate
   
Then Ignore
If the user is being updated, their current container will not be changed
 
Move an active user into a specific org unit
When IsUpdate && Employment.EmployeeStatusCode == 'A'
   
Then OU=Active
If the user is being updated and the employee is active, then the user will be moved into the Active org unit
 
Move an terminated user into a specific org unit
When IsUpdate && Employment.EmployeeStatusCode == 'T'
   
Then OU=Terminated
If the user is being updated and the employee is terminated, then the user will be moved into the Terminated org unit
 
Move an employee into a specific org unit based on their org-unit 1 value
When IsUpdate
     
Then $"OU={OrgLevel1.Description}"
If the user is being updated, move the user into the matching org unit based on their org-level 1 value