Admin User API response changed

Hey,
It seems that the “external_email” inside “single_sign_on_record” on GET “/admin/users/#{id}.json” are not being returned anymore. There is a way to force it return this info ?
Thanks in advance,
André Paes

2 Likes

That makes sense as the email field in the DiscourseConnect section of the user’s page is hidden. When that button is clicked in the UI, a separate request is made to /u/<username>/sso-email.json to get the email address. As long as you know the user’s username, you should be able to make an authenticated GET request to that route to get the external email.

4 Likes