Quantcast
Viewing all articles
Browse latest Browse all 2361

Re: How to retrieve the User Enrolment ID

by Jo Ha.  

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:

  1. 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.
  2. (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.


Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>