I have multiple user id’s. I need to get real names of them
Could I use this query
GET /users?query=<JSON>
?
If so, then how this should look like?
I have multiple user id’s. I need to get real names of them
Could I use this query
GET /users?query=<JSON>
?
If so, then how this should look like?
An example Curl call is this:
curl --location --request POST 'https://MyRT/REST/2.0/users' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"field": "Name",
"value": "dave",
"operator": "="
}
]'
Thank you for answer. Your curl query works but if I change field to id and value to ex. 210 (this id exists in database) then I got list of users and not only one as with your query
curl --location --request GET 'http:///rt/REST/2.0/users' --header 'Content-Type: application/json' --header 'Authorization: token ***' --data-raw '[
{
"field": "id",
"value": "210",
"operator": "="
}
]'
Any ideas what is wrong?
my example was a POST request, yours looks like a GET
I tried both ways, does not work
Also if you only want one user you can do a GET on the “user/123” endpoint, where 123 is the ID of the user.
Seems like maybe Id is being treated special for some reason, searching on Name works but not Id