
dye4h (dye4h) asked a question.
I have a requirement where I have to send password expiry reminder email to the Users.
For this, I am using Okta Automation and everything is working fine but the problem is I have to include the User's Password Expiry Date.
For this, I tried using Time.now("EST", "YYYY-MM-dd HH:mm:ss") Okta Expression Language but it is not working I don't know how to add 5 days into current date.
For example, I set up the automation as "Password expires in Okta within 5 day(s)" so I have to add the current date (today's date) + 5 days to get the password expiry. But not sure how to do this.

Hi @dye4h (dye4h) , Thank you for reaching out to the Okta Community!
This is not supported by the time functions.
If you configured the Automation Condition to “Password expires in 5 days” , you can change the Email notification Subject to something like “your Okta Password will expire in 5 days - please update”. From there, it’s the end-users responsibility to keep track of the date the email was received.
The Automation can be scheduled to run daily and the condition keeps track of the “last password change” date back-end attribute, so only users who’s password expires in 5 days will get the notification.
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--------------------------------
Ask the Experts: Okta Device Access Product Team Now Thru 3/22
Thanks @Mihai Negoita - Okta (Okta, Inc.) for the quick response.
I tried the below function/expression also but nothing is working.
${request.date - I got this from "Password Changed" Email under Brand, this is working on that email template but in Automation it is not working.
Time.now().toZone('Asia/Kolkata')
$zoned_date_time_object.toZone