Hello,
I'm in a similiar situation as carlos - I want to change a user enrollment (role in course) via webservice.
Happily I found the core_enrol_edit_user_enrolment webservice function which allows that (well, at least i thought that from its name). But apparently that webservice requires some parameters, which you are not able to get via webservice... (But wouldn't that, if true, make the core_enrol_edit_user_enrolment webservice completly superfluous?)
And secondly, the core_enrol_edit_user_enrolment only allows changing enrolment status and time, correct?!
This leads me to following questions:
- Is it possible to use the core_enrol_edit_user_enrolmentwebservice for changing the user enrollment in a course, or to be more precise, the role(s) a user is enrolled in a course.
- (If 1) What webservice can be used to retrieve the information needed as parameters for core_enrol_edit_user_enrolment ?
Maybe I'm on the wrong track with the above, so my general question is:
What webservice to use for changeing a users role(s) in a course. I know courseid, userid and new roleid.
Thanks in advance.