I want to use the “Get a user by id” API to get the email of a user.
I can get the user information, but the email is not included in the response.
There is also no parameter to be given. Is there any other setting I need to do?
The email address is available only in the admin/user route. It’s behind an extra click in the ux. You can likely figure it out using How to reverse engineer the Discourse API