Skip to main content
November 18, 2022
Question

getuserlastlogin() not Working

  • November 18, 2022
  • 3 replies
  • 0 views

Hi All,

I am Trying to Fetch Last login Details of some users by using getuserlastlogin() but it is returning Null values for users who logged in 1 week before.

Does This function work only for last 24 Hrs?

Thanks in Advance!!

3 replies

karthikr067273
November 18, 2022

I checked with our environment and the getuserlastlogin() for several users and the function returns the result if the user last log-in happened on the current day.
Also in the app market, One of the users mentioned the same in the comments. please refer to the below link.
https://community.appian.com/b/appmarket/posts/user-login-details

so the conclusion is, The getuserlastlogin() won't work later than the current day.

karthikr067273
December 28, 2022

Maybe you can try the below plugin,
https://community.appian.com/b/appmarket/posts/get-last-successful-login-details

The expression rule "getlastlogindatetime" from the above plugin returns the last login date and timestamp from the past 30 days. If the user logged in 30 days before, The rule will return null.

Thanks

December 28, 2022

Hi karthikr1237, 

Could you please let me know the approach if we need to get users list whose last login date is one year before?