function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tanner RussellTanner Russell 

How can I set a user to not have there login information refreshed after sandbox refresh?

I have users that have sandboxes but the issue is when I refresh the boxs for them the email gets changed to the default @example.com one. How can I setup a user for a sandbox so the email does not change?
Best Answer chosen by Tanner Russell
LBKLBK
Hi Tanner,

This is more of a security measure added by Salesforce to ensure that any of the processes / workflows spam the production users email addresses unnecessarily.

Only the user who refreshes the sandbox will retain the original email address.

Please refer the link below for more details.
https://help.salesforce.com/articleView?id=000193090&language=en_US&type=1

With that being said, if you want to retain the original email address for all the users or a certain group of users (System Administrators for example), you can write a batch job to do that, which can be called during the Sandbox refresh.

Typically, tanner.russell@mycompany.com is translated into tanner.russell=mycompany.com@example.com, which should not be very difficult to reverse engineer and bring back the original email address.

Hope this helps.

All Answers

LBKLBK
Hi Tanner,

This is more of a security measure added by Salesforce to ensure that any of the processes / workflows spam the production users email addresses unnecessarily.

Only the user who refreshes the sandbox will retain the original email address.

Please refer the link below for more details.
https://help.salesforce.com/articleView?id=000193090&language=en_US&type=1

With that being said, if you want to retain the original email address for all the users or a certain group of users (System Administrators for example), you can write a batch job to do that, which can be called during the Sandbox refresh.

Typically, tanner.russell@mycompany.com is translated into tanner.russell=mycompany.com@example.com, which should not be very difficult to reverse engineer and bring back the original email address.

Hope this helps.
This was selected as the best answer
Amit Chaudhary 8Amit Chaudhary 8
Sandbox User email addresses are automatically modified and appended with "@example.com" anytime a Sandbox organization is refreshed. This prevents spam notifications sent to Production Users from the Sandbox (like notifications from triggered Workflow or Process Builders).

Please check below post for more information
1) https://help.salesforce.com/articleView?id=data_sandbox_implementation_tips.htm&type=0

Let us know if this will help you