api refactor for user list