/admin/users/list/active returns users with active=false

Background
A long time ago we migrated from Tender to Discourse. In the process we programatically re-created every single Tender user in Discourse. At the time of writing this, we have ~4k users that were created with that process that have read 0 posts. So its safe to say they are no longer needed.

The Problem

We are using /admin/users/list/active heavily for internal reporting, and we’d like to narrow down the amount of paging we are doing against that endpoint. So I thought I’d set these users as Active=false from the UI so they:

A) Can still come back to our forum if they want it.
B) Do not show up when we hit /admin/users/list/active.

To my surprise, even If I set the user as Active=false, they still show up when I hit /admin/users/list/active

Questions

  1. Is this a bug? It does sound like one to me.
  2. Can anyone think of a different approach I can take to only list inactive users? I know I can bring the whole list and filter them locally, but the goal is to reduce the amount of API calls I’m doing.

Thanks a lot in advance :slight_smile:

No, that’s not what active means in this context. You are conflating “inactivate” as in “inactivate this person’s email and thus their account” and “active” as in “visits the site often”.

In our admin UI we say “active” but we should really say “activated”, so I’ll change that now.

Activated does not equal active.

3 Likes