<p>Not natively because Craft places a unique index on the <code>email</code> column of the <code>craft_users</code> table in the database.</p>

<p>Without knowing the specifics of what you're trying to achieve, I'd probably write a custom plugin that listened to user registration events in Craft and saved the necessary LDAP information in its own database tables that had foreign keys back to the native <code>craft_users</code> table.</p>

CC BY-SA 4.0
2019-03-11T15:13:12.977Z
Even with the custom plugin, would I need 2 different email addresses?
buck1112
CC BY-SA 4.0
2019-03-06T03:32:24.250Z
2019-03-06T03:32:24.250Z
Brad Bell
<p>I am needing to set up two distinct users (one for each of two LDAP log ins) and I need for them both to use the same admin email address.  However, Craft 2 will not let me do this.  Is there a way to do this for this type of special admin/ldap user?</p>

<p>Thanks</p>

<emails><user-profile>
Use Same Email Address On Multiple User Accounts
# Use Same Email Address On Multiple User Accounts

(Asked by: username_0 on 2019-03-04)

I am needing to set up two distinct users (one for each of two LDAP log ins) and I need for them both to use the same admin email address. However, Craft 2 will not let me do this. Is there a way to do this for this type of special admin/ldap user?

Thanks

**Tags:** emails, user-profile

---

## 1 answers

### Answer by username_1 on 2019-03-06. Score: 1

Not natively because Craft places a unique index on the `email` column of the `craft_users` table in the database.

Without knowing the specifics of what you're trying to achieve, I'd probably write a custom plugin that listened to user registration events in Craft and saved the necessary LDAP information in its own database tables that had foreign keys back to the native `craft_users` table.

> **Comments:**
> **username_0**: Even with the custom plugin, would I need 2 different email addresses?  

---

