# Auth0 DB search by user\_metadata

**URL:** <https://community.auth0.com/t/auth0-db-search-by-user-metadata/65660>\
**Category:** Get Help\
**Tags:** actions, rules, database\
**Created:** [July 6, 2021, 11:45am UTC](https://community.auth0.com/t/auth0-db-search-by-user-metadata/65660 "2021-07-06T11:45:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andriibutko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andriibutko/32/30174_2.png) [@andriibutko](https://community.auth0.com/u/andriibutko)\
**Post date:** [July 6, 2021, 11:45am UTC](https://community.auth0.com/t/auth0-db-search-by-user-metadata/65660/1 "2021-07-06T11:45:36Z")

</div>

Hi,  
Is there any opportunity how to retrieve users from the auth0 DB filtered by the user\_metadata parameter?

---

<div class="post-metadata">

**Author:** ![colin.coutts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/colin.coutts/32/17217_2.png) [@colin.coutts](https://community.auth0.com/u/colin.coutts)\
**Post date:** [July 7, 2021, 4:54pm UTC](https://community.auth0.com/t/auth0-db-search-by-user-metadata/65660/2 "2021-07-07T16:54:04Z")

</div>

Hi @andriibutko welcome to the Auth0 Community! 🤩 🎉

You should be able to use this Management API endpoint to achieve this:

> **[Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Users/get_users)**

Here’s some documentation on the valid search fields, I believe there are some examples of how to target specific metadata values as well:

[https://auth0.com/docs/users/user-search/user-search-query-syntax#searchable-fields](https://auth0.com/docs/users/user-search/user-search-query-syntax#searchable-fields)

Let me know if this helps!

Best,  
Colin

---

<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:** [July 22, 2021, 4:54pm UTC](https://community.auth0.com/t/auth0-db-search-by-user-metadata/65660/3 "2021-07-22T16:54:59Z")

</div>

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