当 admin/users.json?email=foobar 或 admin/users/list/all.json?email=foobar 返回空数组的情况

是的,完全没问题。你可以继续使用 /admin/users.json。它使用的底层代码与 /admin/users/list/{flag}.json 完全相同。这可能是它尚未被文档化的原因之一。

我能够让 /admin/users.json 返回一个全新的用户,没有任何主题。

curl -i -sSL -X GET "http://localhost:4200/admin/users.json?email=982f145c7@example.com"  \
-H "Api-Key: ..."  \
-H "Api-Username: blake"

HTTP/1.1 200 OK

[
  {
    "id": 2731,
    "username": "982f145c7",
    "name": "982f145c7",
    "avatar_template": "/letter_avatar_proxy/v4/letter/9/46a35a/{size}.png",
    "active": true,
    "admin": false,
    "moderator": false,
    "last_seen_at": null,
    "last_emailed_at": null,
    "created_at": "2025-04-29T12:31:52.894Z",
    "last_seen_age": null,
    "last_emailed_age": null,
    "created_at_age": 103.259451,
    "trust_level": 1,
    "manual_locked_trust_level": null,
    "title": null,
    "time_read": 0,
    "staged": false,
    "can_be_deleted": true,
    "silence_reason": "",
    "days_visited": 0,
    "posts_read_count": 0,
    "topics_entered": 0,
    "post_count": 0
  }
]

你需要确保使用正确的电子邮件地址,否则将返回一个空数组。