Currently running Discourse 3.5.0.beta5-dev (eff31e0d42).
Would anyone know if the API response from the /admin/users/list/all.json endpoint has changed in the last week or so?
Specifically:
GET /admin/users/list/all.json?email=email@example.com
I think this endpoint used to return a flat JSON object directly representing a single user when queried with an exact email address.
However, the current response structure now appears to wrap the user object inside a new users
array, which has broken a few existing SSO integrations at our end.
Here is an anonymised pseudo example of the response of what I think has changed “before” and “after” for reference.
Old:
{
"id": 1,
"username": "sampleuser",
"name": "",
"avatar_template": "/user_avatar/example.com/sampleuser/{size}/avatar.png",
"active": true,
"admin": false,
"moderator": false,
"last_seen_at": "2025-05-11T08:27:28.578Z",
"created_at": "2020-01-01T12:00:00.000Z",
"suspended": false,
"trust_level": 1
}
New:
{
"users": [
{
"id": 1,
"username": "sampleuser",
"name": "",
"avatar_template": "/user_avatar/example.com/sampleuser/{size}/avatar.png",
"email": "someone@example.com",
"active": true,
"admin": false,
"moderator": false,
"last_seen_at": "2025-05-11T09:34:35.900Z",
"created_at": "2020-01-01T12:00:00.000Z",
"suspended": false,
"trust_level": 1
}
],
"meta": {
"message_bus_last_ids": {
"bulk_delete": 0
}
}
}
Would anyone know of a recent commit that may have caused this change?