Problem
After a Salesforce sandbox refresh, user email addresses have â.invalidâ appended to them. Users cannot log in because verification codes are being sent to the invalid email addresses instead of their real email addresses.
What We Found
This is standard Salesforce sandbox behavior - all email addresses get â.invalidâ appended during a refresh to prevent accidental emails from sandbox going to real users. The challenge is updating the email without requiring verification to the old (invalid) address.
Solution
- Go to Setup > Users and find the user you need to activate
- Click Edit on the user detail page
- Change the email address to remove â.invalidâ AND check the âGenerate new password and notify user immediatelyâ checkbox at the bottom of the edit screen - both changes must be made at the same time
- Click Save
- Salesforce will update the email immediately and send a password reset email to the new (correct) address
Notes
- The key is checking âGenerate new password and notify user immediatelyâ at the same time as changing the email - this bypasses the verification requirement
- If the above method still sends verification codes to the .invalid address, try the standard method: remove .invalid from the email and save, then have users verify using the same verification codes they use for production login
- This is standard Salesforce functionality - for persistent issues, Salesforce Support may need to assist
Warnings
â ïž In some cases, even with the password reset checkbox, verification codes may still go to the old .invalid email address - if this happens, users may need to use their production verification codes or contact Salesforce Support
Source: KHELP-12328