'Returns a list of rows for the given users for this report.'

def _rows_for_users(self, context, users):

    with modulestore().bulk_operations(context.course_id):
        bulk_context = _CourseGradeBulkContext(context, users)
        (success_rows, error_rows) = ([], [])
        for (user, course_grade, error) in CourseGradeFactory().iter(users, course=context.course, collected_block_structure=context.course_structure, course_key=context.course_id):
            if (not course_grade):
                error_rows.append([user.id, user.username, error.message])
            else:
                success_rows.append(((((((([user.id, user.email, user.username] + self._user_grade_results(course_grade, context)) + self._user_cohort_group_names(user, context)) + self._user_experiment_group_names(user, context)) + self._user_team_names(user, bulk_context.teams)) + self._user_verification_mode(user, context, bulk_context.enrollments)) + self._user_certificate_info(user, context, course_grade, bulk_context.certs)) + [_user_enrollment_status(user, context.course_id)]))
        return (success_rows, error_rows)
