# Getting all user details

**URL:** <https://community.auth0.com/t/getting-all-user-details/36371>\
**Category:** Get Help\
**Tags:** app\_metadata, api\
**Created:** [January 15, 2020, 11:36pm UTC](https://community.auth0.com/t/getting-all-user-details/36371 "2020-01-15T23:36:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nidhaldring](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nidhaldring/32/18526_2.png) [@nidhaldring](https://community.auth0.com/u/nidhaldring)\
**Post date:** [January 15, 2020, 11:36pm UTC](https://community.auth0.com/t/getting-all-user-details/36371/1 "2020-01-15T23:36:21Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![ruchi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ruchi/32/18068_2.png) [@ruchi](https://community.auth0.com/u/ruchi)\
**Post date:** [January 16, 2020, 12:45am UTC](https://community.auth0.com/t/getting-all-user-details/36371/2 "2020-01-16T00:45:43Z")

</div>

> [@nidhaldring](#):
>
> user\_metadata

Hi [nidhaldring](http://community.auth0.com/u/nidhaldring),  
Thank you for posting on Auth0 community!

To answer your questions:

You can use the Auth0’s [Authentication API](https://auth0.com/docs/api/authentication) and [Management API v2](https://auth0.com/docs/api/management/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](https://auth0.com/docs/api/management/v2#!/Users_By_Email/get_users_by_email)

2. if it exists i want to get all of his details including user\_metadata, app\_metadata, and roles -

- user\_metadata - You can also use the [GET /userinfo endpoint](https://auth0.com/docs/api/authentication#get-user-info) to get a user’s `user_metadata` , however you must first [write a Rule](https://auth0.com/docs/rules#copy-user-metadata-to-id-token) to copy `user_metadata` properties to the ID Token.

- app\_metadata - Use the following [Management API](https://auth0.com/docs/api/management/v2) endpoints to view, create, update, and delete the `user_metadata` and `app_metadata` fields.

- role - [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Users/get_user_roles)

Reference: [Understand How Metadata Works in User Profiles](https://auth0.com/docs/users/guides/manage-user-metadata)

Hope this helps answer your questions!

Thanks,  
Ruchi

---

<div class="post-metadata">

**Author:** ![nidhaldring](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nidhaldring/32/18526_2.png) [@nidhaldring](https://community.auth0.com/u/nidhaldring)\
**Post date:** [January 16, 2020, 1:09pm UTC](https://community.auth0.com/t/getting-all-user-details/36371/3 "2020-01-16T13:09:50Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![ruchi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ruchi/32/18068_2.png) [@ruchi](https://community.auth0.com/u/ruchi)\
**Post date:** [January 16, 2020, 10:08pm UTC](https://community.auth0.com/t/getting-all-user-details/36371/4 "2020-01-16T22:08:15Z")

</div>

Hi [nidhaldring](http://community.auth0.com/u/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
