added get_users_by_role and simplified get_users