Project

General

Profile

Filter users when calling REST API

Added by Mayama Takeshi over 6 years ago

Hi,
I am trying to find a specific user by email like this:
curl -x '' -u TOKEN 'http://SERVER_IP/users.json?mail='
But i get all users.
I can see this kind of filtering works for issues.json.
Can someone confirm it is not really possible to filter users when using the REST API?


Replies (2)

RE: Filter users when calling REST API - Added by Tatsuya Saito over 6 years ago

Please try like following:

curl -x '' -u TOKEN 'http://SERVER_IP/users.json?name=admin@somenet.foo' 

See Rest_Users

    (1-2/2)