I am setting a password of an existing user, is it possible that setting this password will reset the security token as well ?


2 Answers 2


Yes, Chirag. I confirm that setting password with system.setPassword() does change the security token and also send it to the user through Email, I have tried it.


Yes it does. If you are trying to use setPassword() with an API user, consider creating a custom API profile with the "Password Never Expires" permission turned on.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .