In a research classroom, students are asked for informed consent when they join. You can see at a glance who has given it.
Checking consent
Open the research classroom and go to the Students tab. Each student's consent status is shown alongside their name.
Only students who have consented are included in the research data export.

