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
Internal PartnerInternal Partner 

Considerations before and after doing a Sandbox refresh using the Production environment as source

Hi all, I hope someone can give us here tips as I could not find in any Salesforce documentation how to deal consistently with this Salesforce issue.
Currently, following a sandbox refresh, the email address is changed and appended with @example.com for all users except the user that initiates the Sandbox refresh.  It would be helpful to have it change for all users EXCEPT System Administrators.  It becomes challenging to manage sandboxes when not all System Administrators remember their password from the time it was refreshed.  This would allow them to easily reset their password when needed and log into any Sandbox for their org.
How do you deal with this? which are best practices? is there a workaround?. Comments will be appreciated.
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

Yes, you are right. It is an idea posted on idea exchange. You can also upvote this idea.

However, you can create an Apex code which picks up the users and you can change whatever you want. 

More information: https://docs.releasenotes.salesforce.com/en-us/spring16/release-notes/rn_deployment_sandbox_postcopy_script.htm

Also, please refer to below links which might help you further.

https://help.salesforce.com/articleView?id=000193090&type=1

https://help.salesforce.com/articleView?id=000233025&type=1

For sandbox refresh considerations you can refer below links:

https://salesforce.stackexchange.com/questions/955/post-sandbox-refresh-steps

https://help.salesforce.com/servlet/servlet.FileDownload?file=015300000036AisAAE

https://help.salesforce.com/articleView?id=data_sandbox_implementation_tips.htm&type=5

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas