# How can I get external\_id from the user object?

**URL:** <https://meta.discourse.org/t/how-can-i-get-external-id-from-the-user-object/147864>\
**Category:** Product Support\
**Created:** [13 באפריל,‏ 2020,‏ 7:46pm UTC](https://meta.discourse.org/t/how-can-i-get-external-id-from-the-user-object/147864 "2020-04-13T19:46:40Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pnoeric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pnoeric/32/177144_2.png) [@pnoeric](https://meta.discourse.org/u/pnoeric)\
**Post date:** [14 באפריל,‏ 2020,‏ 12:21pm UTC](https://meta.discourse.org/t/how-can-i-get-external-id-from-the-user-object/147864/5 "2020-04-14T12:21:56Z")

</div>

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.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-get-external-id-from-the-user-object/147864)._
