by Anthony Erickson.
Responding as I similarly want to change the enrolment status for a user on a course but core_enrol_edit_user_enrolment() requires the ueid variable. I can't find another function that returns that variable? How do I source it, if I know the Course ID and User ID?