Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.

Temp password expiration in X hours after current time

tford

Going in circles in my mind about the formula to calculate a timestamp attribute to 48 hours after CURRENT_TIMESTAMP to set a temporary password expiration.

Anyone got it?


Rennur

TIME_ADD
Description:
Returns the timestamp resulting from adding/subtracting the specified number of hours to the specified timestamp
Parameters:
An expression producing timestamp and an expression producing a number to be added or subtracted (if the number is negative) to the timestamp
Example:
If  TIME_ADD (Account.OpeningTime), 4) = 07/04/2004 12:00 Then …


tford

Thanks Renur.

My rule:
SystemUser.PasswordTemp_Expires_ts=TIME_ADD(CURRENT_TIMESTAMP,48-)

Thinking I should probably make the 48 a SystemSetting as well vs hard coding in the rule.