/users/by-external/ ne fonctionne pas

The external_id for a user doesn’t exist on Discourse until you send it with the SSO parameters from the site that is acting as the SSO provider. This site doesn’t use SSO, so it won’t work here.

Once a user has an external_id you can get the user by making a GET request to example.com/users/by-external/:external_id.json.