My name is Chuck Yocum, I am the Support Manager at Spatial Business Systems with 20 years of experience writing system integration tools.
I am currently writing an integration between Zendesk and Moodle user account managment.
In Zendesk an agent can select a bunch of fields and this will create the match Moodle account if need be.
I have written a .Net C# api wrapper to call the different Moodle functions as I wish. My api has no issue getting the course information but I can't get the user functions to work.
I got tired of trying to find the right security sessions so I have created the latest token as the Admin user to be sure what was going on.
I get the error for example when i use this code posted on another discussion. https://moodle.org/mod/forum/discuss.php?d=210866