1 - navigate to Plugins ▶︎ Enrollments / ▶︎ Manage enroll plugins
2 - click settings next to the method you are using
3 - review the setting for 'External unenroll action'
That setting should determine whether to unenroll the student or suspend them (at the course level) based on their cohort membership