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

ModifyIndividualStudentsOptions

Contains fields to add or remove students from a course work or announcement where the assigneeMode is set to INDIVIDUAL_STUDENTS.

JSON representation
{
  "addStudentIds": [
    string
  ],
  "removeStudentIds": [
    string
  ]
}
Fields
addStudentIds[]

string

IDs of students to be added as having access to this coursework/announcement.

removeStudentIds[]

string

IDs of students to be removed from having access to this coursework/announcement.