Skip to main content
June 23, 2021
Solved

Getuserlastlogin

  • June 23, 2021
  • 2 replies
  • 1 view

Hi

I am trying to find inactive users using getuserlastlogin function. It returns date for some user and for some user it returns null. Am I missing anything?

Best answer by sureshk0010

You need to change the server in the server log to get the login details for remaining users.

getuserlastlogin() will by default fetch the details from server selected in serverlog page.

2 replies

csteward
June 23, 2021

Note this is not an OOTB function.  My guess, if we assume the plugin is functioning properly, is that null values would indicate users who have not logged in..  I don't know the inner workings of the plugin unfortunately, and it is a bit older with not much activity in the plugin thread.

User Login Details

Otherwise I would run a number of tests in different environments based on your login-audit.csv file and /admin console "Current User Activity" view, before deploying in production.  

November 10, 2022

You need to change the server in the server log to get the login details for remaining users.

getuserlastlogin() will by default fetch the details from server selected in serverlog page.