LMSouq
moodle-core Open

Moodle user enrollment API

JO
Johnny Zghaib
1 month ago
3 views
Problem Description
I have been asked to create an engine that transform our data on SQL to Moodle data (user, courses, enrollments). i got stuck at a point where i need to enroll a student programmatically using Moodle API without the need to manipulate the database. like: enroll_user($courseid, $userid) does anyone have any input regarding this?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base