# Can we check if email already ecist in AUTH0 .Is there any exposed API?

**URL:** <https://community.auth0.com/t/can-we-check-if-email-already-ecist-in-auth0-is-there-any-exposed-api/104944>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [April 18, 2023, 5:21am UTC](https://community.auth0.com/t/can-we-check-if-email-already-ecist-in-auth0-is-there-any-exposed-api/104944 "2023-04-18T05:21:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsingh2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hsingh2/32/46413_2.png) [@hsingh2](https://community.auth0.com/u/hsingh2)\
**Post date:** [April 18, 2023, 5:21am UTC](https://community.auth0.com/t/can-we-check-if-email-already-ecist-in-auth0-is-there-any-exposed-api/104944/1 "2023-04-18T05:21:53Z")

</div>

Hey I am looking for a way to check if particular email exist or not in AUTH0  
Is there any exposed API for that ?  
By just using AUTH0 domain and creds can we find out for particular email if it exist or not ?  
i know there are ways by using access token but without that is that possible?

---

<div class="post-metadata">

**Author:** ![art.stupels](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/art.stupels/32/30429_2.png) [@art.stupels](https://community.auth0.com/u/art.stupels)\
**Post date:** [April 18, 2023, 10:44am UTC](https://community.auth0.com/t/can-we-check-if-email-already-ecist-in-auth0-is-there-any-exposed-api/104944/2 "2023-04-18T10:44:04Z")

</div>

Hello,

By default, the **Use a generic response in public signup API error message** is enabled in [Tenant Settings](https://auth0.com/docs/get-started/tenant-settings).

> Errors generated using the public signup API will return a generic response when enabled. This helps protect against user registration enumeration by preventing bad actors from being able to guess previously-registered email addresses or usernames from reading error response codes, such as user\_exists

When disabled, you could use the [Signup endpoint of Authentication API](https://auth0.com/docs/api/authentication#signup) or attempt a login with the wrong password to check if the user exists.

This is not recommended due to the above-mentioned enumeration vulnerability.

The other approach is to use the Management API. There are two endpoints that can search users by email:

[List or Search Users](https://auth0.com/docs/api/management/v2#!/Users/get_users)  
[Search Users by Email](https://auth0.com/docs/api/management/v2#!/Users_By_Email/get_users_by_email)

I hope this helps!

---

<div class="post-metadata">

**Author:** ![hsingh2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hsingh2/32/46413_2.png) [@hsingh2](https://community.auth0.com/u/hsingh2)\
**Post date:** [April 18, 2023, 11:48am UTC](https://community.auth0.com/t/can-we-check-if-email-already-ecist-in-auth0-is-there-any-exposed-api/104944/3 "2023-04-18T11:48:52Z")

</div>

Hey,Thanks a ton for the quick response,  
Token would be needed to use any of those AUTH0 Management API which you mentioned right? like search\_by\_email and search users? Correct me if i am wrong?  
Also Regarding public signup API response i totally get your concern So Its achievable only if be disable the generic response right?

---

<div class="post-metadata">

**Author:** ![art.stupels](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/art.stupels/32/30429_2.png) [@art.stupels](https://community.auth0.com/u/art.stupels)\
**Post date:** [April 18, 2023, 12:01pm UTC](https://community.auth0.com/t/can-we-check-if-email-already-ecist-in-auth0-is-there-any-exposed-api/104944/4 "2023-04-18T12:01:06Z")

</div>

Hello,

Yes, to call these Management API endpoints, you will need an Access Token with `read:users` scope. You can get such a token in two ways:

- [Get Management API Access Tokens for Testing](https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-testing)
- [Get Management API Access Tokens for Production](https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-production)

For the public signup/login endpoint, yes, disabling the **Use a generic response in public signup API error message** will allow you to see if the user account exists or not.

---

<div class="post-metadata">

**Author:** ![hsingh2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hsingh2/32/46413_2.png) [@hsingh2](https://community.auth0.com/u/hsingh2)\
**Post date:** [April 18, 2023, 12:03pm UTC](https://community.auth0.com/t/can-we-check-if-email-already-ecist-in-auth0-is-there-any-exposed-api/104944/5 "2023-04-18T12:03:12Z")

</div>

Thanks a ton!!,  
Really appreciate the quick turn around and work !!  
you guyz are making our life easy!!

---

<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:** [May 2, 2023, 12:03pm UTC](https://community.auth0.com/t/can-we-check-if-email-already-ecist-in-auth0-is-there-any-exposed-api/104944/6 "2023-05-02T12:03:35Z")

</div>

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