Is there a way to get a current e-mail address of a user via the API?
Our use case is this:
We allow users to manage their Discourse information via our website. In general, Discourse is only used as a mailing list and nearly all users never visit the actual Discourse site. I want to be able to show the user the current e-mail address that Discourse is using so they can see if it needs to be changed.
I am able to do this with all other fields except email.
There used to be an API endpoint users/{username}/emails but that doesn’t seem to be available anymore.
That worked…I had some old code that used to work (version 1.4 ish) that had the request as a PUT and without the .json at the end. I modified it to a GET and changed the URL and now it works.