# Searchable and indexed Custom attributes

**URL:** <https://community.auth0.com/t/searchable-and-indexed-custom-attributes/190533>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [August 12, 2025, 5:51pm UTC](https://community.auth0.com/t/searchable-and-indexed-custom-attributes/190533 "2025-08-12T17:51:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhouken75034](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zhouken75034/32/70833_2.png) [@zhouken75034](https://community.auth0.com/u/zhouken75034)\
**Post date:** [August 12, 2025, 5:51pm UTC](https://community.auth0.com/t/searchable-and-indexed-custom-attributes/190533/1 "2025-08-12T17:51:18Z")

</div>

Hi ,  
Can we create the custom attributes which are searchable. Also, can we get these attributes indexed for better performance?

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [August 12, 2025, 6:27pm UTC](https://community.auth0.com/t/searchable-and-indexed-custom-attributes/190533/3 "2025-08-12T18:27:43Z")

</div>

Hi @zhouken75034

Thank you for reaching out to us!

I believe that what you are looking for can be achieved by adding the custom attributes to either the user\_metadata or app\_metadata of your users. It’s important to know the distinction between the two ( more information can be found on our following documentation : [Understand How Metadata Works in User Profiles](https://auth0.com/docs/manage-users/user-accounts/metadata)), but the important part is :

- **user\_metadata** : this is information about the user that they can view and edit, such as favorite color, name of their pet, interest etc. It should not contain important information;
- **app\_metadata** : information that the user has read-only level access to and they cannot edit it. Typically used for assigning roles, job attributes, internal ID etc.

_To be noted that sensitive data should never be stored within any of these fields._

Once your custom attributes have been set, you can then use the [List or Search Users](https://auth0.com/docs/api/management/v2/users/get-users) tool of the Management API to run a query and search for all users that have a specific attribute, with the help of the `query: q` search parameter. As an example, if you are searching for all users that have the custom attribute of `role:"helpdesk"` set in their app\_metadata, your query: q search will look like this : `app_metadata.role:"helpdesk"`. This will present a list of all users that have this specific custom attribute set in their app\_metadata.

The following documentation on [User Search Query Syntax](https://auth0.com/docs/manage-users/user-search/user-search-query-syntax) might also prove useful for this purpose.

With regards to indexing the attributes for better performance, I do believe that when it comes to a large number of users that might slow down the Management API, this will require a [Support case](https://auth0.com/docs/troubleshoot/customer-support/open-and-manage-support-tickets) to be opened in order for our Support Engineers to further assist.

Hope this helped!  
Gerald

---

<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:** [August 26, 2025, 6:28pm UTC](https://community.auth0.com/t/searchable-and-indexed-custom-attributes/190533/4 "2025-08-26T18:28:33Z")

</div>

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