GET /rest/api/3/user/assignable/multiProjectSearch only return too few users

We use GET /rest/api/3/user/assignable/multiProjectSearch to get assignable users on our app.
Some our customers reported the problems regarding of lacking assignable users in the list.
We’ve investigated and found that, API request from that client does not response enough result.

We also tested some, and found the response result was weird.
/rest/api/3/user/assignable/multiProjectSearch?projectKeys=[PRJ_KEY]&startAt=0&maxResults=50
responsed 2 users.
but without maxResults
/rest/api/3/user/assignable/multiProjectSearch?projectKeys=[PRJ_KEY]&startAt=0

it returned 50 users.

our client has about 1200 assignable users, but the below request only returned more 2 users.
/rest/api/3/user/assignable/multiProjectSearch?projectKeys=[PRJ_KEY]&startAt=50

The problem does not happen on our site. Just happens on some customers.

1 Like