Recently a new feature was introduced to Moodle, namely user suspension.
There is no reflection of it on the webservices however.
Even though one can enable/disable user accounts by settings the auth field to "nologin" or "manual" for example, this is relatively bad, because one can inadvertly set an invalid auth plugin. Also it requires to keep track of the previous auth plugin before setting it to "nologin".
On Moodle 2.2 at least, it's possible to suspend user accounts, disabling user login, messaging, etc. This is done by simply setting a suspended value = 1 on the DB for the respective user.
I would be glad to implement those changes, namely on the parameters, returns and code of core_user_create_users, core_user_update_users, and others (which I would have to verify).
This would allow for a cleaner user account suspension enabling/disabling interface.
I would like to know your opinions,