Extend Gitlab's users API by providing additional time-based filters, e.g. current_sign_in_at or last_sign_in_at

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Problem to solve

Currently the users API does not allow to filter users based on attributes current_sign_in_at or last_sign_in_at. In my use case I need to retrieve non-active users, i.e. users which have not logged in for the past 12 months. The users API does not allow to formulate such a query as created_before and created_after are the only time-based attributes that are supported at the moment.

Further details

(Include use cases, benefits, and/or goals)

Proposal

Please consider to extend the Users API such that current_sign_in_before or last_sign_in_before are supported as query filters.

What does success look like, and how can we measure that?

The API supports the aforementioned query filters.

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading