Skip to main content
New Idea

User API: Improve /user endpoint: support sorting by lastvisit and/or return recent users

Related products:CC API
  • May 9, 2026
  • 0 replies
  • 6 views

jvdc

Hi everyone,

We are currently building a custom user directory and “online users” widget using the /user endpoint via connectors, and we’ve run into a key limitation that makes it difficult to build meaningful activity-based views.

✅ Current limitation

The /user endpoint:

  • Supports pagination (page, pageSize)
  • Returns users in default order (likely by userid)
  • Does not support sorting by activity fields such as lastvisit

Because of this:

  • Even when increasing pageSize (e.g. 100–500), we are still only working with a small, unsorted subset of users
  • Sorting client-side only works within that subset, not across the full user base
  • For communities with thousands of users (e.g. ~9000 in our case), this results in: difficulty building features like: “Users online” (or recently online)

✅ Feature request

It would be extremely helpful if the /user endpoint supported one (or more) of the following:

🔹 1. Sorting support

Allow sorting by fields such as:

GET /user?sort=lastvisit:desc

🔹 2. Filtering by last activity

Provide a filter such as:

GET /user?filter[lastvisit][from]=<timestamp>