I am using external database for enrollments. I was REALLY hoping that when sync.php is run to enroll users from external database, that it would create non-existing users in moodle. I have read the documentation and see that it does not do this. The only authentication method I am using is OIDC, and I'm not sure if it can be used to create users automatically.
Any suggestions on how I can automate the creation of new accounts in moodle so that sync.php enrollment will successfully enroll all users in the table? I may need to create another process to run on schedule and create accounts before enrollment occurs. Any tips or suggestions on the best way to do this?