Moodle: Automating user/course creation and enrolments
===

I had a look at the documentation on [enrolments][1], but all the enrolment methods seem to involve some interaction with the GUI.

Is there a way to script enrolments? Something like:

    ./moodle_do_enrolments imsdata.xml

Or even some web services calls that I can call from an external program?

I'd like to be able to do the following in an automated fashion:

    1) Add a user.
    2) Create a course with specified title etc.
    3) Enrol that user in that course.

Of course at some point I'd hook this up with our user systems and other management systems, but for the moment, I'm just trying to do a proof of concept.

Where is some documentation that explains the process of automated enrolments?

  [1]: http://docs.moodle.org/23/en/Enrolments

