by Ben Ten.
The core_user_update_users function may not update passwords directly due to security reasons. Ensure the password meets Moodle’s policy requirements, and check that the user has the correct permissions, and try this. Make sure the password is plain text and not pre-hashed. Review Moodle logs or enable debugging for more insights, as the issue might be silently handled.