LDAP unenrollment

LDAP unenrollment

by David Berry -
Number of replies: 2
Just been reading the LDAP autoenrollment document at http://moodle.org/mod/forum/discuss.php?d=31761 and wondered if the reverse could somehow be achieved ie removing students from Moodle using LDAP information.  We use LDAP from our AD  to enable students to log on to our Moodle server.  The year group names are also stored within AD.  Year 11 students have now left so there must be some way of removing the name of these students from all courses from Moodle.

Don't know if this has been solved before - apologies if it has  but I can't find it.

Any  help/pointers appreciated.

David Berry
Average of ratings: -
In reply to David Berry

Re: LDAP unenrollment

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
If you want to remove enrolments (but not Moodle's user accounts), use .../enrol/ldap/enrol_ldap_sync.php.

If you want to remove Moodle's user accounts, use .../auth/ldap/auth_ldap_sync_users.php

Saludos. Iñaki.