# Allow same username with database connection

**URL:** <https://community.auth0.com/t/allow-same-username-with-database-connection/13465>\
**Category:** Get Help\
**Created:** [July 20, 2018, 11:06am UTC](https://community.auth0.com/t/allow-same-username-with-database-connection/13465 "2018-07-20T11:06:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronipozn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ronipozn/32/17122_2.png) [@ronipozn](https://community.auth0.com/u/ronipozn)\
**Post date:** [July 20, 2018, 11:06am UTC](https://community.auth0.com/t/allow-same-username-with-database-connection/13465/1 "2018-07-20T11:06:56Z")

</div>

Hello,

Is it possible to remove the restriction of signing with a username which already exist but different email?

I will take care of the duplicates usernames in my database but I don’t want to force my usernames to non-exist names. Is it possible?

Thank you,  
Roni

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [July 20, 2018, 2:26pm UTC](https://community.auth0.com/t/allow-same-username-with-database-connection/13465/2 "2018-07-20T14:26:17Z")

</div>

The `username` field in an Auth0 database connection is required to be unique. I don’t believe there is any way around this. We’ve had similar problems. Our eventual solution will be to move away from usernames altogether in favour of email address logins only.

---

<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 26, 2019, 8:33am UTC](https://community.auth0.com/t/allow-same-username-with-database-connection/13465/3 "2019-07-26T08:33:21Z")

</div>


