I am wondering about having XWiki remember the last time a user logged on - a “last logon time” attribute.
This can be retrieved in Active Directory by syncing the lastLogonTimestamp attribute, but that value is a large-integer (number of 100-nanosecond intervals since Jan 1 1601 UTC). This can be converted to a local datetime in in PowerShell by saying [DateTime]::FromFileTime(value), but I don’t see a way to convert this directly in XWiki. (Perhaps there’s a way using Custom Display with the retrieved value?)
It seems it would be quite useful to know the last logon times of users - particularly in cases where there is a requirement (internal site) to automatically disable/remove old users.
Thoughts?
Bill