/users/by-external route doesn't support external_id values with "." in them

I noticed that the API includes a by-external route, which seems to allow you to get user data by the SSO external id, which is great. Unfortunately, it doesn’t seem to work with external_ids that have periods in them.

It looks like this is a common issue with Rails. Could you fix this?

Thanks!

1 Like

I made a pull request: https://github.com/discourse/discourse/pull/3163

I barely know what I’m doing with Ruby and next to no idea about Rails, so I’m not sure if there’s a better way to do this.

It’s been over two weeks since I reported this bug… It’d be nice to hear if this is something you plan to fix, or not.

Thanks.

See also this for some back discussion:

https://meta.discourse.org/t/usernames-with-periods-are-changed-to-underscore/17168?u=downey

UPDATED:
Here is the correct url: mydiscoursesite.com/users/by-external/1.json

I am having problems using the by-external route.

Should the following url work?
mydiscoursesite.com/users/by-external/1 (1 being the external id from the SSO user table)

cc @mbeale

1 Like

dots in external_ids are now supported