I am trying to create a SQL script to extract the list of the users along with their last login dates. The final goal here is to disable users that have not used Laserfiche in more than 3 months.
For this, I am using a select query with a joint between the "directory_objects" and "user_logins" tables of the LFDS database (we are using Laserfiche 11 self-hosted). This seem to work fine for saml users and for a few Windows users but several other Windows users do not appear with a null last_login date.
I checked the repository in Laserfiche Admin Console, and confirmed these users have both "Last Login" and "Last logout" today. However, when searching for their SID in the "user_logins" table, it doesn't seem to exist.
Does anyone have an idea why this might happen ?
Thank you !