When a user change the password, the API field, LastPasswordChangeDate, on the User got updated. This can be seen with SOQL query. However, the UserTrigger never fires. The UserTrigger fires properly when other normal user fields got changed. How do I detect this user password change event? If using a trigger, then, on which table? Are there any other ways?


1 Answer 1


There are some Operations That Don't Invoke Triggers. Even though this page doesn't call out password changes specifically, it makes sense that triggers would not fire, because triggers generally only fire if there is an actual DML operation (insert, update, upsert, merge, delete, or undelete). Setting or resetting a user's password doesn't fall into any of these six categories, as the API call is setPassword or resetPassword, rather than any of those six DML operations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.