Web Services Enrolment and Add to Group

Web Services Enrolment and Add to Group

by Paul Vincent -
Number of replies: 0

Hi,


I've been working through some Web Service REST examples, e.g. http://www.spanidis.eu/?p=27 but I've yet to work out how to enrol a student on to a course via their username or email as opposed to their user id. The issue being that our SIS doesn't store the student's Moodle id, and therefore we need to be able to gain access to the id via a known variable. I suppose we could create a workaround by making the user creation script pass the user id back to the SIS, but that won't help for accounts created via other means than the API. As well as enrolling the user, we also need to add them to a group, but that will hopefully come easily once we have the user id.


Many thanks in advance,


Paul


Average of ratings: -