# 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:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [March 4, 2021, 6:55pm UTC](https://meta.discourse.org/t/create-users-through-api-using-explicit-user-ids/182078/2 "2021-03-04T18:55:21Z")

</div>

You can’t assign the ID.

There is an external ID route:

```
    get "#{root_path}/by-external/:external_id" => "users#show", constraints: { external_id: /[^\/]+/ }

```

If you enable site setting `sso_overrides_username` (I think that’s a thing), you don’t need to change the username with the API.

---

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