+ Start a Discussion

How can I change an email address of an old deactivated user?

I am trying to change the email from a schedulable class for old users to purge their info from the system, a requirement of the client's to not show old employees information.  I know you can manually change the email and click the checkbox saying: "Generate new password and notify user immediately" but if i change it through apex it doesn't change.  Is there a way to enable that checkbox when updating a users info from apex? or a way that I can change the old user's email address without email confirmation or manual steps??
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi James,

May I suggest you please refer the below link to reference. hope it helps.

Please mark it as best answer if the information is informative.

Rahul Kumar