External database

You can use an external database to control student enrollment. In this case, Moodle looks in the designated database and determines whether the student is enrolled.

Moodle will not write back to the external database. All changes in the external database are made by another program. So to enroll and unenroll students, you will need to change the external database.

In addition to using the external database, you can also allow Moodle's normal enrollment routine. If you enable manual enrollments in addition to the external database, Moodle checks two databases when a student tries to enter a course: the external one and its internal one.

Get Moodle 3 E-Learning Course Development - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.