Query users from REST API.