We use the external database enrollment option [via ODBC] in Moodle to synchronize the enrollments in the courses. The "Synchronise external database enrolments task" is scheduled to run at 4am daily but we are finding that the enrollments are also being updated at other random times throughout the day.
Looking at the logs, the task description shows "The user with id '0' assigned the role with....". My question is, what other task would call on the synchronization. How do we find out which task is causing this?
The 'synchronise external database task' log displays only the instances as scheduled for 4am.
Environment:
Moodle 3.11.2 LAMP.
A little more detail:
It looks like the role update is happening when the user logs in. The origin in the logs is listed 'web' and the ip address is the client ip.
Is there a setting somewhere that checks the user's enrollment against the external database? My assumption is that when a user logs in, they simply access courses assigned locally in Moodle and that the enrollment is a separate process taking place as pre-determined.