by tim shannon.
Alex,
The pre req “user must be logged in” is stated in the API documentation.
Site Administration,
Plugins, Web services, API documentation – enrol_manual_
enrol_users. At the end after the Response error message this is written;
Restricted
to logged-in users
Yes
Callable
from AJAX
No
So thanks for your reply, it seems I can rule out this comment in the API, though if it is not what it says it is, I do wonder what it is exactly. It does help muddy the already murky water.
I have been doing the same – creating test users, and then attempting to enrol them. I have tried as both an array and as an object. I’ll fiddle around a bit more and post the results.
Thanks, tim