# Create users through API using explicit user ids

**URL:** <https://meta.discourse.org/t/create-users-through-api-using-explicit-user-ids/182078>\
**Category:** Product Support\
**Created:** [March 4, 2021, 6:30pm UTC](https://meta.discourse.org/t/create-users-through-api-using-explicit-user-ids/182078 "2021-03-04T18:30:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![vagosduke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vagosduke/32/196991_2.png) [@vagosduke](https://meta.discourse.org/u/vagosduke)\
**Post date:** [March 4, 2021, 8:16pm UTC](https://meta.discourse.org/t/create-users-through-api-using-explicit-user-ids/182078/3 "2021-03-04T20:16:19Z")

</div>

Thanks, but I don’t have the external\_id when the user is created. The user is created programmatically, and the association with the external SSO won’t happen until the user logs in to Discourse. Unless there is a way to programmatically associate the user with that external\_id during user migration, I don’t think external\_id can be used.

---

_[View the full topic](https://meta.discourse.org/t/create-users-through-api-using-explicit-user-ids/182078)._
