The following steps can help you prevent students from unenrolling themselves from a class:
- Create a unique class code for each of the sections of your class
- Ensure that only students invite their fellow classmates to join the class
- Set the class registration to approval needed option
- Make sure to require a student-created password when students join the class