
00ufqy4mxkCMrc2vn0h1.5318579510676252E12 (Optiv) asked a question.
I'd like to create a group rule that finds users that have logged in in the last 60 days. I can't seem to find the "math" query in the Okta expression language, has anyone successfully created a rule for this?

Thank you for posting on our Community page.
Unfortunately, there isn't any expression that can be used to capture users' last login. More over, Group Rules can be currently used only to assign users based on their Group assignments or certain attribute values.
An idea would be, if the users are AD mastered, to set up, in AD, an attribute whose value is changed every time a particular user logs in; this attribute can be mapped in Okta and used as a Group Rule statement.
Thank you,
Paul Auer
Technical Support Engineer | Okta