# API management - User search: Field

**URL:** <https://community.auth0.com/t/api-management-user-search-field/8817>\
**Category:** Get Help\
**Tags:** management-api\
**Created:** [November 24, 2017, 2:55am UTC](https://community.auth0.com/t/api-management-user-search-field/8817 "2017-11-24T02:55:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robinson.dantas](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@robinson.dantas](https://community.auth0.com/u/robinson.dantas)\
**Post date:** [November 24, 2017, 2:55am UTC](https://community.auth0.com/t/api-management-user-search-field/8817/1 "2017-11-24T02:55:35Z")

</div>

I am trying to filter the request using filed as per described: A comma separated list of fields to include or exclude (depending on include\_fields) from the result, empty to retrieve all fields.

I am getting the following message:

```
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Query validation error: 'String does not match pattern ^(([a-zA-Z0-9_\\\\.]+))(,(([a-zA-Z0-9_\\\\.]+)))*$: email, user_metadata.name' on property fields (A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields).",
  "errorCode": "invalid_query_string"
}

```

---

<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:** [November 24, 2017, 4:58pm UTC](https://community.auth0.com/t/api-management-user-search-field/8817/2 "2017-11-24T16:58:59Z")

</div>

You have a space character in the value you’re providing for the `fields` option. If you use `email,user_metadata.name` instead of `email, user_metadata.name` (space after comma) then the request should complete successfully or at least it should not complain about that error.

---

<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/api-management-user-search-field/8817/3 "2018-03-02T05:57:32Z")

</div>


