Can we use okta expression language to do a date or timestamp comparison?
Here's what I'm looking to achieve: I'm trying to create a rule for groups, which looks at a user's join date in the profile and then needs to put them into a group. So I need to check if a user's join date is less than or equal to the current date and if yes, put them into a group. The format of joining date (string) in the user profile is like this : "joinDate": "2018-07-03T00:00:00.000Z" How do I use OKta expression language to compare this string with the current time and then use the result to put the user in a group
I would assume that the users have the attribute for join date and of course a value for that. In this case when you add a Group Rule and the expression should look something like this: user.joinDate<="Time.now(EST)" I have run a test on my end and was able to make it work. In case you have more questions regarding this, don't hesitate to open a ticket with support.
Paul Stiniguta Technical Support Engineer Okta Global Customer Care