Creating Active Users via the API gem

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

1 Like