# Create staged users via API?

**URL:** https://meta.discourse.org/t/create-staged-users-via-api/279052
**Category:** Development
**Tags:** rest-api
**Created:** [September 14, 2023, 7:23pm UTC](https://meta.discourse.org/t/create-staged-users-via-api/279052 "2023-09-14T19:23:28Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [September 14, 2023, 7:50pm UTC](https://meta.discourse.org/t/create-staged-users-via-api/279052/2 "2023-09-14T19:50:20Z")

</div>

> [@mattdm](#):
>
> But, is there a way to create a staged user from the API? I don’t see that in [Discourse API Docs](https://docs.discourse.org/#tag/Users/operation/createUser).
> 
> * * *
> 
> 1. and possibly also Like and Solved events, but not in the first cut [↩︎](#footnote-ref-1368457-1)
> 2. I _definitely_ thought about this _before_ writing out this list [↩︎](#footnote-ref-1368457-2)
> 3. using email addresses as key because account systems may not have same usernames [↩︎](#footnote-ref-1368457-3)
> 4. I saw a post about this being possible somewhere around here… [↩︎](#footnote-ref-1368457-4)

Not sure if this is what you want?

> [@Creating a staged user with an API call](https://meta.discourse.org/t/creating-a-staged-user-with-an-api-call/84667/2):
>
> Yes, just create a user via the api. They won’t be “staged” at this point since they actually exist. If they ever need to log in, they can just reset their password. This is also possible Here is a rough example of how to create a user, active them, and generate an api key for them. def create\_user user = { name: example1, email: "example1@example.com", password: "ZvAmmkcSWQfsPQLBksg7wK59", username: example1, active: "false", approv…

---

_[View the full topic](https://meta.discourse.org/t/create-staged-users-via-api/279052)._
