[SalesForce] Sandbox verification emails

Time and time again another user creates or refreshes a sandbox and I cannot log into it.

I use my credentials from production, but a verification code is sent to the "myemail=gmail.com@example.com" address, which of course I can never access.

Does anyone know of a way to prevent this from happening? I am sick of having to ask the person creating the sandbox to change my email manually.

Best Answer

Have a look at the SandboxPostCopy Interface. It should be possible to have Apex run after the Sandbox is created and then modify the specific User records email address fields.