# App Metadata search not working anymore

**URL:** <https://community.auth0.com/t/app-metadata-search-not-working-anymore/8384>\
**Category:** Get Help\
**Tags:** app\_metadata, metadata, search, elasticsearch\
**Created:** [October 4, 2017, 6:27am UTC](https://community.auth0.com/t/app-metadata-search-not-working-anymore/8384 "2017-10-04T06:27:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![derric](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/derric/32/7328_2.png) [@derric](https://community.auth0.com/u/derric)\
**Post date:** [October 4, 2017, 6:27am UTC](https://community.auth0.com/t/app-metadata-search-not-working-anymore/8384/1 "2017-10-04T06:27:27Z")

</div>

We’ve been searching on the `app_metadata` for a year with mostly no issues.  
Now, it is returning empty search results. Please advise.

```
auth0Manager
.getUsers({
per_page: 50,
q: `_exists_:app_metadata.permissions.${escapedId}`,
search_engine: 'v2'
})

```

Where escapedId = 240:91

We have multiple users including [derric+2@moesif.com](mailto:derric+2@moesif.com) / auth0|59d3e111886d0e7e4a7ccc4f which has a field 240:91

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 4, 2017, 5:24pm UTC](https://community.auth0.com/t/app-metadata-search-not-working-anymore/8384/2 "2017-10-04T17:24:01Z")

</div>

Per the information available in this user search related [incident](https://status.auth0.com/incidents/71nlbr16j7ng) tenants with active usage, but that did not had an active paid subscription at the time of the incident were migrated to have user search available only on a restricted set of user profile attributes.

If you were relying on user search for attributes not listed on that restricted set (which seems to be your scenario) then the recommended action would be (if you haven’t done so already) to contact support through the email address available in the incident linked above. The reason for going through that route is that it’s easier to discuss the situation of specific tenant accounts as there is no issue in disclosing those tenant names given it’s not a public conversation.

---

<div class="post-metadata">

**Author:** ![zen.chen](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@zen.chen](https://community.auth0.com/u/zen.chen)\
**Post date:** [October 10, 2017, 9:58pm UTC](https://community.auth0.com/t/app-metadata-search-not-working-anymore/8384/3 "2017-10-10T21:58:29Z")

</div>

I’m having a similar issue with an integration between Typeform and Slack, what I’m trying to do is store a token into app\_metadata after a user login successfully and then redirect to the typeform with the token as a query parameter, then when the user submit the typeform, the service receive a webhook with the user token and using the management API try to get the user and if success then post a message into Slack with the responses. This have been working until yesterday, but today is not working. The query that we’re performing is something like this q=app\_metadata.token:Uv38aAd3UUASZU8WP18PmmIdcpVmx00QA3xNe7sEB9Hixkk= and you can find the code making this call here [https://github.com/kooso/typeformsso/blob/master/storage/auth0\_user\_storage.go#L115](https://github.com/kooso/typeformsso/blob/master/storage/auth0_user_storage.go#L115)

---

<div class="post-metadata">

**Author:** ![aminul](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aminul/32/14328_2.png) [@aminul](https://community.auth0.com/u/aminul)\
**Post date:** [October 11, 2017, 2:56pm UTC](https://community.auth0.com/t/app-metadata-search-not-working-anymore/8384/4 "2017-10-11T14:56:50Z")

</div>

In my case the account is moved from free to a developer plan subscription , but still the getting empty results for the following search query ,

```
q=app_metadata.test_property:'test'

```

Users from the db has the `app_metadata.test_property` with value `test`  
Any idea whats wrong?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 17, 2017, 8:46pm UTC](https://community.auth0.com/t/app-metadata-search-not-working-anymore/8384/5 "2017-10-17T20:46:24Z")

</div>

Have in mind that the info above was based on the account status at the time of the incident. Moving everyone (even free) with unrestricted search could again lead to the same underlying issue so it was decided that free would be migrated with restrictions by default. However, we understand that an existing account could already be depending on that functionality and as such we are trying to accommodate everyone that had an account before the issue took place. In summary, existing accounts at the time of the incident even free are eligible to metadata search if their use case is valid.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 17, 2017, 8:48pm UTC](https://community.auth0.com/t/app-metadata-search-not-working-anymore/8384/6 "2017-10-17T20:48:28Z")

</div>

If you already reached to us and explained your use case then it’s highly likely that the situation can be restored for you, however, the situation implies manual steps including review and as such can take some time.

---

<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:56am UTC](https://community.auth0.com/t/app-metadata-search-not-working-anymore/8384/7 "2018-03-02T05:56:49Z")

</div>


