# 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:** [9월 11, 2015, 6: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:** 37

<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: [2월 8, 2018, 5:19오후 UTC](https://meta.discourse.org/t/creating-active-users-via-the-api-gem/33133/37 "2018-02-08T17:19:46Z")

</div>

Hmm. When I did this last week, I did the deactive, then activate thing. Adding “approved=true” is a good idea. I’m not sure that it matters unless the site requires approval, but I don’t see how it could hurt.

Here’s my solution:

[https://github.com/pfaffman/discourse-user-creator](https://github.com/pfaffman/discourse-user-creator)

---

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