I need to create an extern application that creates, modifies and enroll users of Moodle.
I've been reading moodle documentation but its more for front administrators that for developers. How can I do to create a user? which tables hold obligatory information about them? and how do I enroll existing users to moodle?
As answered here creating moodle users and register them on courses programatically by me =3. This works completely extern to moodle.
E finito. There you got a new user name enroled into course 123.
You should use web services rather than using SQL - https://docs.moodle.org/dev/Creating_a_web_service_client
core_user_create_users
andenrol_manual_enrol_users
Once you have that set up, use something like this: