# How to create a new user in pure sql

**URL:** <https://meta.discourse.org/t/how-to-create-a-new-user-in-pure-sql/136525>\
**Category:** Migration\
**Created:** [December 19, 2019, 5:15pm UTC](https://meta.discourse.org/t/how-to-create-a-new-user-in-pure-sql/136525 "2019-12-19T17:15:39Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![paultaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paultaylor/32/166024_2.png) [@paultaylor](https://meta.discourse.org/u/paultaylor)\
**Post date:** [December 20, 2019, 2:49pm UTC](https://meta.discourse.org/t/how-to-create-a-new-user-in-pure-sql/136525/14 "2019-12-20T14:49:50Z")

</div>

OK question 2, an example of adding a custom _import\_pass_ field for user\_id 5, (user\_id can be seen in the user\_emails table or id from users table)

insert into user\_custom\_fields (user\_id, name, value, created\_at, updated\_at) values (5,‘import\_pass’,‘2aee1c40222c7754d4534e61452612cc’, now(), now());

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-a-new-user-in-pure-sql/136525)._
