Trigger to email/archive users that haven't logged in


(Tim Trodd) #1

Matrix Version: 5.3.1.1

Hi,

As we create users manually (not via LDAP etc) we have a problem where users get created, then when they leave the company, their user account remains active until someone eventually lets us know that they are no longer around.

Ideally we would like to create a trigger so that it emails users that haven’t logged into matrix for 6 months + with a basic email saying “are you still here? please let us know”, whilst also setting there account to “archive”.

If they email back we can then switch their account back to live.

I have had a look on the forums/manuals and don’t think this is available as there isn’t a last login field? Has anyone else done a work around for something similar?


(Bart Banda) #2

There is a last logged in date keyword: %asset_attribute_login_date%

But maybe use a metadata date field that you update via a trigger every time the user logs in, with an offset of 6 months in the future, then use the metadata time condition and event to check if that metadata field is expired, if it is, then use the trigger action to set them as Up For Review and send them the email, as that way they have to update their password on login, and you could also then set another future status date of Archived in 1 week or something if they haven’t logged in by then?


(Tim Trodd) #3

Thanks Bart. This sounds just like what we want!