Hello,
They can use the POST /api/v2/users/search endpoint with a body like this:
{
"sortOrder": "ASC",
"pageSize": 50,
"pageNumber": 1,
"sortBy": "id",
"query": [
{
"operator": "AND",
"type": "EXACT",
"fields": [
"state"
],
"values": [
"active",
"inactive"
]
},
{
"operator": "AND",
"type": "EXACT",
"fields": [
"divisionId"
],
"value": "ID-OF-THE-DIVISION-TO-USE-IN-FILTER"
}
]
}
If they only want active users, they can remove "inactive" entry from the first filter.
And define the division id in the second filter ("ID-OF-THE-DIVISION-TO-USE-IN-FILTER").
Regards,
------------------------------
Jerome Saint-Marc
Senior Development Support Engineer
------------------------------