# Specify user by external id

**URL:** <https://meta.discourse.org/t/specify-user-by-external-id/87584>\
**Category:** Product Support\
**Created:** [16 mei 2018 om 02:56 UTC](https://meta.discourse.org/t/specify-user-by-external-id/87584 "2018-05-16T02:56:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mattman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattman/32/119713_2.png) [@mattman](https://meta.discourse.org/u/mattman)\
**Post date:** [16 mei 2018 om 02:56 UTC](https://meta.discourse.org/t/specify-user-by-external-id/87584/1 "2018-05-16T02:56:45Z")

</div>

I’m just starting to learn how to use the Discourse API.

I’ve got data coming back when I send an api\_key and api\_username to an endpoint.

However, specifying the user by their username seems mysterious and brittle. I need to know the right username but the user can change their username and I don’t know what it actually is from outside.

My Discourse users can only import an account from my Bubble app. In the SSO section there’s an ‘external id’ that looks like it’s the account’s unique id from Bubble.

**Is there a way to specify the user I want based on their external id instead of their username?**

---

_[View the full topic](https://meta.discourse.org/t/specify-user-by-external-id/87584)._
