# Migrating from Passwordles to Database connection

**URL:** <https://community.auth0.com/t/migrating-from-passwordles-to-database-connection/9116>\
**Category:** Get Help\
**Tags:** database-connections, passwordless\
**Created:** [January 3, 2018, 1:20pm UTC](https://community.auth0.com/t/migrating-from-passwordles-to-database-connection/9116 "2018-01-03T13:20:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsajja](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rsajja](https://community.auth0.com/u/rsajja)\
**Post date:** [January 3, 2018, 1:20pm UTC](https://community.auth0.com/t/migrating-from-passwordles-to-database-connection/9116/1 "2018-01-03T13:20:00Z")

</div>

I have several 100 users in my Tennant that are using passwordless (email connection type) connectivity. I am switching them over to Lock and it requires a Database connection type. I would like to do the following:

1. Convert them to database connection type, is there a script I can run to do this? or do I need to delete all of them and recreate them with new connection type?

2. I dont want to trigger welcome email when I do this. Want to set a default password for everyone and force them to change at first login. Can do this via script.?

Sorry, I have not been using the API a lot so any help pointing me to the API script would be helpful.  
Thanks

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [January 3, 2018, 6:15pm UTC](https://community.auth0.com/t/migrating-from-passwordles-to-database-connection/9116/2 "2018-01-03T18:15:40Z")

</div>

A few things to have in mind first before tackling the actual questions; [this Lock](https://github.com/auth0/lock) for web applications does not currently have built-in support for passwordless conenctions, however, there’s also [Lock Passwordless](https://github.com/auth0/lock-passwordless) so it is strange if the only reason to switch authentication methods is the library.

**Q1** Identities across connections are independent although you can link multiple identities into a single end-user, however, if you want a group of users to stop using passwordless to authenticate and instead use a database connection then linking is not of much use. You should create the respective users in the database connection through the Management API (see these [reference docs](https://auth0.com/docs/users/migrations/bulk-import)); if the existing passwordless users have metadata that you want to transfer then you would have to get that first.

**Q2** You can disable email templates in the dashboard in order to prevent any emails. With regards to settings default password I would instead consider not sending any password to end-users and just have them complete a reset password flow in order to set their first password.

---

<div class="post-metadata">

**Author:** ![rsajja](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rsajja](https://community.auth0.com/u/rsajja)\
**Post date:** [January 3, 2018, 7:32pm UTC](https://community.auth0.com/t/migrating-from-passwordles-to-database-connection/9116/3 "2018-01-03T19:32:42Z")

</div>

Thank you very much. On your answer to #2, are you suggesting they click the “Forgot your password” link on the lock dialog and reset their password?.

---

<div class="post-metadata">

**Author:** ![rsajja](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rsajja](https://community.auth0.com/u/rsajja)\
**Post date:** [January 3, 2018, 7:32pm UTC](https://community.auth0.com/t/migrating-from-passwordles-to-database-connection/9116/4 "2018-01-03T19:32:42Z")

</div>

Thank you very much. On your answer to #2, are you suggesting they click the “Forgot your password” link on the lock dialog and reset their password?.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [January 3, 2018, 8:39pm UTC](https://community.auth0.com/t/migrating-from-passwordles-to-database-connection/9116/5 "2018-01-03T20:39:25Z")

</div>

Yes, that would ensure they would have to change their password and also mean there would be no actual sharing of default passwords through other (potentially less secure) methods.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 9:19am UTC](https://community.auth0.com/t/migrating-from-passwordles-to-database-connection/9116/6 "2019-07-25T09:19:12Z")

</div>


