RocketChat / RocketChat/Rocket.Chat

Field LastLogin in users.list not available anymore

Open
#22,457 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Our scripts are not working more. We look for the field "lastlogin" in the API call users.list. But since the update to version 3.14.5 the field is not available. We need this field urgent for our scripts.

Steps to reproduce:
  1. API Call users.list
  2. Look in the user information
  3. the field "lastlogin" is not available
Expected behavior:
Show last Login for any users
Actual behavior:
don´t show the last login field and so our scripts are not running
Server Setup Information:
  • Version of Rocket.Chat Server: 3.14.5 & 3.16.1
  • Operating System: Ubuntu
  • Deployment Method:
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v12.22.1
  • MongoDB Version: 4.0.22
Client Setup Information
  • Desktop App or Browser Version:
  • Operating System:
Additional context
Relevant logs:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the missing field through the users.list API call on the reported Rocket.Chat versions, then trace that endpoint's user information response. Done means restoring lastlogin for users and confirming the response with a regression test; the payload does not name a source file or existing test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.