Create getUsers function.