# Disable account confirm emails when creating users via API

**URL:** https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663
**Category:** Development
**Tags:** rest-api
**Created:** [August 23, 2017, 11:18pm UTC](https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663 "2017-08-23T23:18:20Z")
**Posts on this page:** 1
**Showing post:** 32

<div class="post-metadata">

### Author: ![dm.linov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dm.linov/32/167719_2.png) [@dm.linov](https://meta.discourse.org/u/dm.linov)
#### Post date: [January 28, 2020, 7:05pm UTC](https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663/32 "2020-01-28T19:05:43Z")

</div>

Hi Blake, thank you for your response!

> [@blake](#):
>
> They might be under the “new” tab instead of the “active” tab?

No, unfortunately not. I checked that. For some reason, I have the same list of users in the “Active” and “New” tabs, just in a different order.

> [@blake](#):
>
> I’m not exactly sure what your use case is for creating users for the API

I am going to migrate from another place (YouTrack, an issue tracker), and would like to make it as smooth and seamless to our users as possible. So my plan was to move all users via API, then move their posts (pull that from the issue tracker and create them in Discourse via API), comments and attachments, and after that send invitations. This is why I need to create users first - to make them the authors of their posts and comments.

> [@blake](#):
>
> You will have to make 3 requests:
> 
> 1. Create the user with the `active=true` param
> 2. Deactive the user
> 3. Activate the user.

Yes, I’ve read that in this topic above. The problem is that for step 2 I need to know the user ID, which is supposed to be in the response to step 1, but it isn’t. Also, the response message to “active=true” should be different, as shown here: [Creating Active Users via the API gem - #36 by mikechristopher](https://meta.discourse.org/t/creating-active-users-via-the-api-gem/33133/36)

---

_[View the full topic](https://meta.discourse.org/t/disable-account-confirm-emails-when-creating-users-via-api/68663)._
