API Endpoint to Retrieve Community Emails Addresses

I was hoping somebody can point me to where I can set my endpoint to retrieve via API callout users email addresses associate with my organizations specific community.

I can hit the end point of active users, new users and others; however, the associated email does not return for any other user other than my account.

Thank you.

Maybe this:
https://meta.discourse.org/t/api-best-way-to-get-user-details-by-email/20806/10?u=dax

This only looks to return my email - and no one else’s. In fact, the "email": endpoint is only visible for my user

I’m seeing the same problem with the users/list API call. The email addresses are not being returned, and I’m using an API key generated for the system user, which should be all-powerful?

The API documentation definitely says that “email” should be non-empty.

I’m using v1.9.2.

I’ve found the answer here:

https://meta.discourse.org/t/email-address-no-longer-being-exposed-on-discourse-api/21109

The API has changed.

Кто-нибудь знает текущий статус получения адресов электронной почты через API? (Ссылка на страницу не работает.)

В документации API сказано, что email должен возвращаться из /admin/users/{id}.json, но при моих запросах он отсутствует.

У меня есть список имен пользователей Discourse, и я пытаюсь получить их адреса электронной почты, чтобы сопоставить их с адресами в другой системе.

# Я получаю ID пользователя отсюда:
f"{BASE_URL}/u/{username}.json"

# а затем пытаюсь получить адрес электронной почты отсюда:
f"{BASE_URL}/admin/users/{user_id}.json"

Если адреса электронной почты больше недоступны там, есть ли другой способ программно получить их по имени пользователя?

Я нашёл другой способ, посмотрев веб-запросы в браузере. Этот URL работает:

f"{BASE_URL}/u/{username}/emails.json"