Added pagination support to getUsers()