# Creating Active Users via the API gem

**URL:** https://meta.discourse.org/t/creating-active-users-via-the-api-gem/33133
**Category:** Development
**Tags:** rest-api
**Created:** [2015年九月11日 18:06 UTC](https://meta.discourse.org/t/creating-active-users-via-the-api-gem/33133 "2015-09-11T18:06:38Z")
**Posts on this page:** 1
**Showing post:** 34

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [2017年十二月6日 14:37 UTC](https://meta.discourse.org/t/creating-active-users-via-the-api-gem/33133/34 "2017-12-06T14:37:46Z")

</div>

~~To create an active user you will need to make two api calls. The first to create the user and the second to activate them.~~

> [@Disable account confirm emails when creating users via API](https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663/31):
>
> They might be under the “new” tab instead of the “active” tab? I’m not exactly sure what your use case is for creating users for the API but I would consider looking into using [Single Sign on](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045). However, these are the current steps you need to perform in order to create a user via the API without sending a confirmation email. You will have to make 3 requests: Create the user with the active=true param Deactive the user Activate the user.

---

_[View the full topic](https://meta.discourse.org/t/creating-active-users-via-the-api-gem/33133)._
