Page 1 of 1

Report: Username and last login

Posted: Tue Jan 13, 2026 3:48 pm
by pepsupport
Is there a way to pull all users and their last login date?

Re: Report: Username and last login

Posted: Wed Jan 14, 2026 8:37 am
by FTP
OK, you can execute the following Lua script in "Administration > Console", just replace the first line "domain1" with your domain name.

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