We have installed the latest Moodle. I am able to search moodle course information using the API, but I am having trouble testing out user account creation.
It seems like "core_user_create_users" is the appropriate command. However, when using a valid token, fetching the following URL
https://moodle.example.com/moodle/webservice/rest/server.php?wstoken=mytoken&wsfunction=core_user_create_users&moodlewsrestformat=json&firstname=a&lastname=b&email=c@example.com&username=d
The following is returned:
{"exception":"webservice_access_exception","errorcode":"accessexception","message":"Access control exception"}
Am I doing it correctly, or am I missing something?
Thanks!