getuserlist function