implemented conditional request for getUsers