Why getUserById doesn't return the user's email?

I’m currently working with the webhooks, but the only way that I have to link my users with treehouse is through email.

Why that field doesn’t return when we’re using https://{defaultHost}/admin/users/{id}.json ?

It doesn’t exactly reply to your question, but does this help?


Probably of no use for your case since you can't dynamically change the user's ID as far as I know

Run Data Explorer queries with the Discourse API

2 Likes

I used this way but will be another request just to retrieve the email.
Would be better if the email would return with the username and name at the https://{defaultHost}/admin/users/{id}.json

2 Likes