We are using below API to search user.
API Call - [INSTACE_URL]/rest/api/3/user/assignable/search?query=d&project=10051&maxResults=100
We have also tried GET /rest/api/3/user/search but we are not getting result if we are passing inactive user in query parameter.
To get inactive and deleted users, you might want to use Get all users API (notice the trailing
/users/search). There’s an
active boolean field to indicate if the user is inactive, however, filtering of results will be done in your code and not part of any request parameters.