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

<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:27pm UTC](https://meta.discourse.org/t/create-users-through-api-using-explicit-user-ids/182078/5 "2021-03-04T20:27:40Z")

</div>

I need to migrate a bunch of existing users from my SSO to Discourse. These users may never log-in to Discourse directly, but it should be possible to e.g. send them messages, or retrieve their notifications via the Discourse API. This is why they should be proactively created programmatically. Furthermore, users are able to change their username on SSO, so, given an id, I need to be able to update a user’s username on Discourse as well

---

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