# 409 "User Already Exists" but User Not Found in Email or Username Searches (RESOLVED)

**URL:** <https://community.auth0.com/t/409-user-already-exists-but-user-not-found-in-email-or-username-searches-resolved/196135>\
**Category:** Get Help\
**Tags:** user-already-exists, user-management\
**Created:** [January 9, 2026, 9:04pm UTC](https://community.auth0.com/t/409-user-already-exists-but-user-not-found-in-email-or-username-searches-resolved/196135 "2026-01-09T21:04:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthurstrizheus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/arthurstrizheus/32/78028_2.png) [@arthurstrizheus](https://community.auth0.com/u/arthurstrizheus)\
**Post date:** [January 9, 2026, 9:04pm UTC](https://community.auth0.com/t/409-user-already-exists-but-user-not-found-in-email-or-username-searches-resolved/196135/1 "2026-01-09T21:04:18Z")

</div>

**ISSUE:**

Getting consistent 409 Conflict “The user already exists” (auth0\_idp\_error) when creating users via Management API v2, but users don’t appear in email or username searches. This affects multiple different credentials.

**ENVIRONMENT:**

- Auth0 Management API v2

- Connection: Username-Password-Authentication

- Creation: POST /api/v2/users

- Search: /api/v2/users-by-email and /api/v2/users?q=username:“…”&search\_engine=v3

**THE PROBLEM:**

_Create user request:_

> POST /api/v2/users
> 
> {
> 
> “connection”: “Username-Password-Authentication”,
> 
> “email”: “user@example.com”,
> 
> “password”: “…”,
> 
> “username”: “testuser123”,
> 
> “email\_verified”: false
> 
> }

_Response:_

> {
> 
> “statusCode”: 409,
> 
> “error”: “Conflict”,
> 
> “message”: “The user already exists.”,
> 
> “errorCode”: “auth0\_idp\_error”
> 
> }

But then:

- Email search: GET /api/v2/users-by-email?email=user@example.com → Returns (nothing)

- Username search: GET /api/v2/users?q=username:“testuser123”&search\_engine=v3 → Returns (nothing)

- Dashboard search: No users found

**WHAT WE’VE TRIED:**

1. Multiple completely different email/username combinations - all fail the same way

2. Verified Management API token has correct permissions (read:users, create:users)

3. Checked Auth0 Dashboard - no users visible, no pending password resets

4. Tried with email-only (no username field) - same error

5. Standard Username-Password-Authentication connection (no custom database scripts)

6. No hooks or rules configured

**QUESTIONS:**

1. Why does Auth0 report “user exists” when no user can be found via any API or dashboard search?

2. Are deleted users or other hidden states causing this conflict?

3. How can we clear these phantom user records?

4. Is this a known issue with recent Auth0 updates?

**SIMILAR CASES:**

Found a 2017 community thread with the same error message. Their resolution: misconfigured “Get User” script in custom database connection settings.

However, our case is different:

- We’re using standard Username-Password-Authentication (Auth0’s managed database)

- No custom database scripts are involved

- No custom “Get User” or “Create” scripts to debug

**IMPACT:**

This is blocking all new user registrations. Any help would be greatly appreciated!

**UPDATE** : Confirmed this occurs with brand new, never-before-used email addresses and random usernames.

—–

**ROOT CAUSE [SOLVED]:**

The conflict was NOT with email or username - it was with the PHONE\_NUMBER field!

Auth0’s soft-delete period applies to ALL user fields including phone\_number. When a user is deleted, their phone number remains reserved for 24-48 hours and CANNOT be reused, even with completely different email/username combinations.

**THE MISLEADING ERROR:**

Auth0 returns “The user already exists” for phone\_number conflicts, which is extremely confusing because:

1. The error message doesn’t specify WHICH field is conflicting
2. Email/username searches return empty (because no user exists with that email/username)
3. The phone\_number causing the conflict is invisible in most search results
4. Developers naturally assume “user exists” means email or username conflict

PROOF OF THE ISSUE:

Test 1 - WITHOUT phone\_number:

```auto
{
“email”: “tesc3@gmail.com”,
“username”: “teqcv32”,
“given_name”: “tt”,
“family_name”: “tt”
}
Result: ✅ SUCCESS - User created

```

Test 2 - WITH same phone\_number but different email/username:

```auto
{
“email”: “4tsdfv@gmail.com”, ← COMPLETELY DIFFERENT
“username”: “334tdf”, ← COMPLETELY DIFFERENT
“phone_number”: “+1 ********** ”, ← SAME AS DELETED USER
“given_name”: “gg”,
“family_name”: “gg”
}
Result: ❌ 409 “The user already exists” - but searches for email/username return EMPTY

```

THE SOLUTION:

1. **Use a different phone number** - One that hasn’t been used by any recently deleted users
2. **Make phone\_number optional** - Let users register without it initially
3. **Add phone number after registration** - Create users without phone, add it via profile update later

**IMPROVED ERROR HANDLING:**

To avoid this confusion, we added detailed logging to identify which field is causing conflicts:

```javascript
// Log the exact data being sent
console.log("Attempting to create Auth0 user with data:", {
    email: userData.email,
    username: userData.username,
    phone_number: userData.phone_number, // ← Critical to log this!
});

// On 409 error, test registration without phone_number
// If it succeeds without phone but fails with phone → phone_number is the culprit

```

**DEBUGGING STRATEGY:**

When you get “user already exists” but searches return empty:

1. Try creating the user WITHOUT optional fields (especially phone\_number)
2. If it succeeds, add fields back one at a time to identify the conflict
3. Phone\_number conflicts are invisible to standard email/username searches
4. Check if the phone\_number was used by a recently deleted user

**KEY TAKEAWAYS:**

1. Auth0’s “user already exists” error applies to ALL unique fields, not just email/username
2. Phone\_number has its own uniqueness constraint and soft-delete period
3. The error message doesn’t specify which field is conflicting
4. Email/username searches won’t reveal phone\_number conflicts
5. Always test registration without optional fields when debugging mysterious 409 errors
6. Consider making phone\_number optional during registration to avoid this issue entirely

**IMPACT:**

This issue can completely block user registrations if you’re reusing phone numbers from test accounts or deleted users. The misleading error message makes it appear as a database corruption or phantom user issue when it’s actually a simple field conflict.

**RECOMMENDATION FOR AUTH0:**

Please improve the error message to specify WHICH field is causing the conflict:

- “A user with this email already exists”
- “A user with this username already exists”
- “A user with this phone number already exists”

This would save developers countless hours of debugging phantom user issues.

Hope this helps others experiencing this confusing issue!

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [January 12, 2026, 4:19pm UTC](https://community.auth0.com/t/409-user-already-exists-but-user-not-found-in-email-or-username-searches-resolved/196135/3 "2026-01-12T16:19:35Z")

</div>

Hi @arthurstrizheus

Thank you for providing an update regarding the matter and sharing the solution with the community!

I will investigate more about the expected behaviour of the presented scenario and forward these recommendations to the appropriate team.

I will be marking this reply as a solution in order for the topic to be closed and I will be quote it here:

> **ROOT CAUSE [SOLVED]:**  
> The conflict was NOT with email or username - it was with the PHONE\_NUMBER field!  
> Auth0’s soft-delete period applies to ALL user fields including phone\_number. When a user is deleted, their phone number remains reserved for 24-48 hours and CANNOT be reused, even with completely different email/username combinations.

If you have any other questions or issues in the future, let un know by posting around here again!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 26, 2026, 4:20pm UTC](https://community.auth0.com/t/409-user-already-exists-but-user-not-found-in-email-or-username-searches-resolved/196135/4 "2026-01-26T16:20:13Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
