Are your users using Classroom with Google Meet? Check out the Apps Script quickstart covering how to check student attendance in Google Meet courses.

CourseWorkType

Possible types of work

Enums
COURSE_WORK_TYPE_UNSPECIFIED No work type specified. This is never returned.
ASSIGNMENT An assignment.
SHORT_ANSWER_QUESTION A short answer question.
MULTIPLE_CHOICE_QUESTION A multiple-choice question.