Auth0 Home Blog Docs

Getting all user details

Hey,
i’m a new user of auth0 and i’ve been exploring the api for a couple of days trying to do the following but with no result:

  1. check if a user exists with the given email and password
  2. if it exists i want to get all of his details including user_metadata, app_metadata, and roles
    i hope you can help me with this one or at least guide to which api i shoul use
    and thanks in advance :slight_smile:

Hi nidhaldring,
Thank you for posting on Auth0 community!

To answer your questions:

You can use the Auth0’s Authentication API and Management API v2 for both of those things.

  1. check if a user exists with the given email and password - GET user by user id
    GET users by email

  2. if it exists i want to get all of his details including user_metadata, app_metadata, and roles -

Reference: https://auth0.com/docs/users/guides/manage-user-metadata

Hope this helps answer your questions!

Thanks,
Ruchi

3 Likes

thanks but as for 1 is there a way to use BOTH password and email to check if a user exists from a backend application ?
i’m reading the documentation now but it’s a bit unclear when it comes to this.
thanks again :slight_smile:

Hi nidhaldring,

No, there is no way to check if a user exists by their password (for security and privacy reasons). Can you please elaborate on what your use case for this is? We may be able to provide a work around depending on your needs.

Thanks!
Ruchi

1 Like