# Creating users without passwords via API

**URL:** <https://meta.discourse.org/t/creating-users-without-passwords-via-api/139718>\
**Category:** Product Support\
**Created:** [25 בינואר,‏ 2020,‏ 4:14pm UTC](https://meta.discourse.org/t/creating-users-without-passwords-via-api/139718 "2020-01-25T16:14:43Z")\
**Posts on this page:** 1\
**Showing post:** 1

<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:** [25 בינואר,‏ 2020,‏ 4:14pm UTC](https://meta.discourse.org/t/creating-users-without-passwords-via-api/139718/1 "2020-01-25T16:14:43Z")

</div>

I am migrating my support forum to Discourse from a helpdesk (YouTrack).  
I would like to use API to do the following:

1. Pull users (name, username, e-mail) from YouTrack and create similar users in Discourse. Not setting passwords for them!
2. Send an invitation to all these users to sign up in Discourse, using the same usernames and e-mails (for them to create new passwords).
3. Pull certain topics, attachments, and comments from YouTrack and create the same in Discourse.  
For that, I will need the same users to exist in Discourse so that they could be made authors of topics and comments. This has to be done, no matter whether such users have signed up in Discourse after receiving the invitation, or not.

Problems:  
a) The API documentation says that the “password” field is required when creating a user. How can I work around it?  
b) What should be the state of such user (created via API, already has some topics under his name, but not yet confirmed, nor password set)?

---

_[View the full topic](https://meta.discourse.org/t/creating-users-without-passwords-via-api/139718)._
