implemented get_users with attrs