title: How to use elasticsearch query with searchUsers function in Kuzzle?
body: <p>i set a property called <code>type</code> in some users with the kuzzle console, now i want to search for user who have the <code>type</code> set to <code>user</code> so i use a query for searching user.
  Here is my code:</p>
  <pre><code>const resultUsers = await kuzzle.security.searchUsers({
    query: {
      term: {
        type: &quot;user&quot;
      }
    }
  })
  console.log(resultUsers)
  </code></pre>
  <p>I also tried with this query too:</p>
  <pre><code>query: {
    term: {
      &quot;content.type&quot;: &quot;user&quot;
    }
  }
  </code></pre>
  <p>and this one:</p>
  <pre><code>query: {
    term: {
      &quot;_source.type&quot;: &quot;user&quot;
    }
  }
  </code></pre>
  <p>But the function always return 0 users. Can someone explain me why please ?</p>