Is User's Last Login date updated when the user directly approves things by email?

Cristiano Souz1
Tera Contributor

I would like to know whether the last login is updated when an user approves something directly through email (without loging).

Thanks in advance.

1 ACCEPTED SOLUTION

Mahathi
Mega Sage
Mega Sage

Hi Cristiano,

 

As per the below KB Article, i feel the last login will get updated for the user.


https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0824070

 

You can also check further in this :

 

https://www.servicenow.com/community/developer-forum/how-last-login-time-works/m-p/2432299#M947661

 

Please mark helpful if it answers your question.

 

Thanks

View solution in original post

4 REPLIES 4

Mahathi
Mega Sage
Mega Sage

Hi Cristiano,

 

As per the below KB Article, i feel the last login will get updated for the user.


https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0824070

 

You can also check further in this :

 

https://www.servicenow.com/community/developer-forum/how-last-login-time-works/m-p/2432299#M947661

 

Please mark helpful if it answers your question.

 

Thanks

Sai Shravan
Mega Sage

Hi @Cristiano Souz1,

 

No, the last login field is not updated when a user approves something directly through email in ServiceNow.

 

The "last_login" field in ServiceNow is a system field that is updated only when a user logs into the ServiceNow instance. If a user approves something directly through email without logging into ServiceNow, the "last_login" field will not be updated. To track user activity in ServiceNow, you can use features such as Audit Log, System Log.

Reference : https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0564981

 

Regards,
Shravan

Regards,
Shravan
Please mark this as helpful and correct answer, if this helps you

Gabor10
Mega Guru

Not by default.

 

The below script action is responsible for updating the "Last login" field on sys_user. 

https://<your instance>.service-now.com/nav_to.do?uri=sysevent_script_action.do?sys_id=8e93ed730a05001301dec5cd65369e9e

 

This Script Action is triggered whenever a "login" event is created in the Event Queue. 

You could create a custom Event (and a Business Rule that triggers it whenever an inbound email is received on the instance) and create a custom Script Action to update the "Login time" similarly as the out of the box action is doing it. 

 

While it is possible, I do not recommend doing it

Edward Rosario
Mega Sage
Mega Sage

The last login date for a user in ServiceNow is typically updated when the user logs in to the platform directly through the ServiceNow user interface.

 

However, when a user directly approves things by email in ServiceNow, the last login date for that user may not be updated, as they are not technically logging in to the platform.