# Change or breakage in Management API v2 user search?

**URL:** <https://community.auth0.com/t/change-or-breakage-in-management-api-v2-user-search/8619>\
**Category:** Get Help\
**Tags:** user-search, metadata, management-api\
**Created:** [October 30, 2017, 8:13am UTC](https://community.auth0.com/t/change-or-breakage-in-management-api-v2-user-search/8619 "2017-10-30T08:13:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgaines](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgaines/32/14722_2.png) [@jgaines](https://community.auth0.com/u/jgaines)\
**Post date:** [October 30, 2017, 8:13am UTC](https://community.auth0.com/t/change-or-breakage-in-management-api-v2-user-search/8619/1 "2017-10-30T08:13:30Z")

</div>

As part of our standard application functionality, when we do admin searches for users and when customer users log on, we perform a v2 management API search for the user record.  
The fields we ask for in the search are:  
user\_id,name,email,email\_verified,user\_metadata.accountId,user\_metadata.guid,  
user\_metadata.userType,user\_metadata.name,created\_at,updated\_at,last\_ip,last\_login,logins\_count,blocked,  
app\_metadata.roles

The fields we’re getting back are:  
user\_id,name,email,email\_verified,created\_at,updated\_at,last\_ip,last\_login,logins\_count,blocked

That is, _none_ of the requested user\_metadata or app\_metadata fields are coming back.

Is anyone else experiencing this? This was working correctly as recently as two hours ago.

---

<div class="post-metadata">

**Author:** ![Mark\_Redman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mark_redman/32/6240_2.png) [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Post date:** [October 30, 2017, 1:21pm UTC](https://community.auth0.com/t/change-or-breakage-in-management-api-v2-user-search/8619/2 "2017-10-30T13:21:37Z")

</div>

If nothing has changed in your application and you are having issues with search, that may be related to a major incident that has affected over the past few weeks specifically Lucene searches on free accounts, you should contact support to see if its related to that.

If you have upgraded your application to use the API from v1 to v2, or switched on OIDC compliance, or created a new instance of your application that uses new Auth0 client (which would have create this with OIDC enabled) this will affect how metadata is returned.

---

<div class="post-metadata">

**Author:** ![jgaines](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgaines/32/14722_2.png) [@jgaines](https://community.auth0.com/u/jgaines)\
**Post date:** [October 30, 2017, 1:43pm UTC](https://community.auth0.com/t/change-or-breakage-in-management-api-v2-user-search/8619/3 "2017-10-30T13:43:43Z")

</div>

Thanks for your reply.  
We’re aware of the major incident around Lucene searches. That did break a bunch of features, but we were able to be moved back onto the DB cluster where those searches still work.  
This is something else. The application in question has been running in production for almost a year. We’ve made no changes to this particular search functionality (which also engages when a user logs in, for application-specific reasons that aren’t really relevant here). Up until a couple of hours before I posted, that search had been working correctly for months.

---

<div class="post-metadata">

**Author:** ![Mark\_Redman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mark_redman/32/6240_2.png) [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Post date:** [October 30, 2017, 2:02pm UTC](https://community.auth0.com/t/change-or-breakage-in-management-api-v2-user-search/8619/4 "2017-10-30T14:02:35Z")

</div>

If your application has not changed, I suspect things have either moved again, or there is a new incident causing search issues. Hopefully support will jump on this quickly.

---

<div class="post-metadata">

**Author:** ![jgaines](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgaines/32/14722_2.png) [@jgaines](https://community.auth0.com/u/jgaines)\
**Post date:** [October 30, 2017, 2:05pm UTC](https://community.auth0.com/t/change-or-breakage-in-management-api-v2-user-search/8619/5 "2017-10-30T14:05:38Z")

</div>

Yes, we’ve opened a ticket and they’ve been pretty responsive so far.  
They suggested a workaround which is simply to omit the list of fields you want back. This way you get back everything, including all the user\_metadata and app\_metadata subfields. This works. It’s probably somewhat inefficient, but we can live with it for now.

---

<div class="post-metadata">

**Author:** ![Mark\_Redman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mark_redman/32/6240_2.png) [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Post date:** [October 30, 2017, 2:20pm UTC](https://community.auth0.com/t/change-or-breakage-in-management-api-v2-user-search/8619/6 "2017-10-30T14:20:52Z")

</div>

ok, cool, good to know.

---

<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:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/change-or-breakage-in-management-api-v2-user-search/8619/7 "2018-03-02T05:57:12Z")

</div>


