Getting error/forcepasswordchangenotice via Web Service

Problem

When making a web service calls, I get the following error:

{
    "exception": "moodle_exception",
    "errorcode": "forcepasswordchangenotice",
    "message": "error/forcepasswordchangenotice"
}

Solution

The issue is that the user account that is making the web service call has "Force password change" checked. You can simply log in the browser interface, find the user in question, and uncheck the "Force password change" checkbox.

Related Articles