by house master.
Hi,
I want to add new users to our moodle system in a webapp via the REST-API. Since you need to be logged in for "core_user_create_users" to work, I thought "auth_email_signup_user" would be the correct function. But here I always get the "Invalid parameter value detected" error... The API documentation says I need a username, password, firstname, lastname and email parameter, but it won't work:
https://<moodle>/webservice/rest/server.php?wstoken=xyz&wsfunction=auth_email_signup_user&moodlewsrestformat=json&username=test&password=xyz&firstname=house&lastname=master&email=house@xyz.com
The parameter format for core_user_create_users is "users[0][firstname], users[0][lastname]" etc. but this won't work either.
Any ideas what I am doing wrong?