You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find users with passwords last set within the last 90 days <-- I'll be using this as an example
I took your query and added info to get the actual name and pwdlastset timestamp. In the Neo4j browser: MATCH (u:User) WHERE u.pwdlastset < (datetime().epochseconds - (90 * 86400)) and NOT u.pwdlastset IN [-1.0, 0.0] RETURN u.name, u.pwdlastset
I get this data back:
u.name
u.pwdlastset
"USERNAME@DOMAIN"
1540398615.0
Converting that timestamp to a date: MATCH (u:User) WHERE u.pwdlastset < (datetime().epochseconds - (90 * 86400)) and NOT u.pwdlastset IN [-1.0, 0.0] RETURN u.name,datetime({epochSeconds:toInteger(u.pwdlastset)})
I get this data back (which is more than 90 days):
u.name
datetime({epochSeconds:toInteger(u.pwdlastset)})
"USERNAME@DOMAIN"
"2018-10-24T16:30:15Z"
I think the text needs to be flipped to read Find users with passwords last set in 90 days or more or the less than symbol (<) needs to be flipped around to a greater than symbol (>)
The text was updated successfully, but these errors were encountered:
Are the two queries below correct?
I took your query and added info to get the actual name and pwdlastset timestamp. In the Neo4j browser:
MATCH (u:User) WHERE u.pwdlastset < (datetime().epochseconds - (90 * 86400)) and NOT u.pwdlastset IN [-1.0, 0.0] RETURN u.name, u.pwdlastset
I get this data back:
Converting that timestamp to a date:
MATCH (u:User) WHERE u.pwdlastset < (datetime().epochseconds - (90 * 86400)) and NOT u.pwdlastset IN [-1.0, 0.0] RETURN u.name,datetime({epochSeconds:toInteger(u.pwdlastset)})
I get this data back (which is more than 90 days):
I think the text needs to be flipped to read
Find users with passwords last set in 90 days or more
or the less than symbol (<) needs to be flipped around to a greater than symbol (>)The text was updated successfully, but these errors were encountered: