Report: Username and last login
Posted: Tue Jan 13, 2026 3:48 pm
Is there a way to pull all users and their last login date?
The official forum of Wing FTP Software
https://bbs.wftpserver.com/
Code: Select all
local domain = "domain1"
local strUserlist = c_GetUserList(domain)
local userlist = Split(strUserlist,"\n")
for _,username in pairs(userlist) do
local user = c_GetUser(domain,username)
if user ~= nil then
print("User: "..username.."\n")
if user.last_loginip ~= "" and user.last_logintime ~= "" then
print("Last login time: "..user.last_logintime.."\n")
end
print("\n")
end
end