Overview:
Users that were created in the Pending state with an Activation Date in the future but were inactivated before that date, are activated anyways by the User Account Activation Job.
Root Cause:
There are three scenarios for the behavior of the User Account Activation job. Both dates Activation Date and Inactivation Date are taken into consideration when the job runs.
Scenario 1: Activation Date > Inactivation Date
This scenario happens if the User is in Pending or Inactive state.
- The job runs before the Activation Date -> does not change the User's state (User is Pending/Inactive)
- The job runs on the Activation Date -> changes the User to Active state
Scenario 2: Activation Date < Inactivation Date
This scenario happens if the 'Make User Inactive' action is run on an Active User record.
- The job runs on or after the Inactivation Date -> does not change the User's state (User remains in Inactive state)
Scenario 3: Activation Date = Inactivation Date
- The job does not change the User's state (User remains in Inactive state)