Is there a way to get all emails of users with the API?

If you are using true Discourse SSO, you can query the existence of a user by their external unique ID passed in the SSO payload using GET https://example.com/u/by-external/<EXTERNAL_ID>

2 Likes