How can I get external_id from the user object?

Aha, I didn’t realize the /user endpoint would be available to individual users. I forgot that there is such a thing as User API keys.

I keep getting thrown by inconsistencies. Right now, if I want single_sign_on_record, I have to know the Discourse user ID (/admin/users/:username.json doesn’t work)… but most other API calls seem to require the username (like /users/:username.json).

And then there are separate API endoints that are very similar and seem almost identical but return different results, i.e. /admin/users gives me single_sign_on_record data for the user, but calling just /users/ does not.

None of this is a big deal, I’m figuring it out as I go… once I get further along, I might see if I can tweak the docs a bit and make some of this more clear.