Sandbox refresh results in usernames being prefixed and old sandbox still accessible.
Trailblazer Community

Sandbox refresh results in usernames being prefixed and old sandbox still accessible.

Sandbox

Last updated 2018-03-30 ·Reference W-2410200 ·Reported By 255 users

Fixed - Winter '15 Patch 13.0

Summary
Upon refreshing a sandbox, you may receive an email message stating:

"Some users could not be created with their original user names in this sandbox. This is usually because these users exist in a previously copied sandbox and user names must be unique across all sandboxes."

Alternatively, if you attempt to change a username you may encounter the following validation error,

"Error: Duplicate Username.
The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address)."

Users may find that they are unable to login to the sandbox using the typical sandbox username convention and instead have to use the provided prefixed username to login. This may be due to an unexpected circumstance where the previous version of the sandbox has not been deleted properly.

If the previous refresh's sandbox environment is not deleted the username persists causing the new refresh's resulting username to not be unique so a second modification is performed in which a number of characters and digits are prepended to the modified username. This second modification may result in a username such as 00x7Vquser@acme.com.test.

This issue is a reopen of https://success.salesforce.com/issues_view?id=a1p30000000eJa0

Repro
1. Refresh an existing sandbox
2. Activate it

Or

1. Attempt to change an existing sandbox's username

Workaround
Instead of using the typical sandbox username syntax:
user@acme.com.SandboxNameHere

Use the provided usernames with the prefix to login to the sandbox after refresh.

The prefix can be found in the corresponding email message or by navigating to your sandbox setup section (Setup, click Sandboxes or Data Management | Sandboxes).

Locate the affected sandbox in the list, you should see a Current Org Id value similar to: 00Dn0000000CnGn the prefix can be the last 4 characters of this value in lowercase, or possibly the last 4 + the last three characters if the case insensitive id value was used: 4 character "cngn" or "cngneak" you can determine the 18 character version of the organization id value by inputting it here: http://www.adminbooster.com/tool/15to18

For a sandbox named "test" with the current Org Id above the usernames may be:
cngnuser@acme.com.test or cngneakuser@acme.com.test

If you're still unable to login to the new sandbox please log a case with Salesforce Support and they can provide the required prefix or with your permission, they may be able to manually delete the persisting sandbox causing the unexpected behavior.

Updates
This issue has been fixed for new sandbox refreshes. To fully resolve the behavior on any sandboxes that were affected by this known issue during a previous refresh, it may be necessary for Salesforce Support to manually delete the persisting sandbox organization.

If you suspect your sandbox may have be affected, please log a case with Salesforce Support for assistance.

Reported By (255)

Simon Law Inspection Manager Eric Stephenson Ernesto Ornelas Kalloori Ramesh Antonio Herrera Joshua Roth mario gomes Jose Antonio Gonzalez Daniel Fletcher Christopher Sweet Taryn-Lee Olivier Rupesh Bhatia Ben Johnson Debbie Schoeppel Jonathan Cipryk Chris Simmerman Richard Clarken Sushil Negi Abhik Sarkar Murthy Tumuluri Laurentiu Lulciuc STEVE BENIGNO Jennifer Lariviere Brittany Golob Muralikrishna Sara Yeo Andrew Vanessa Anderson Autumn Breese Janet Kang Michael Anderson Brian Zardus Nisha Agrawal Jan Vandevelde Tony Li Amod Bhagwat Erica Ho AccentureAdmin Melissa Van Giezen Luke Vang Elizabeth Sweet Padi Dhanunjaya Teresa Morra Roshi Mittal Kaushik Ghosh Mike Davies Jalpa Bhatt Shingo(開発者サポート) Yamazaki Nancy Brown Amlan Sengupta Fritz Kranz Vrajesh Nayak Sandhya Sreevari Richard Gay Phyllis Lynch Megan Cassell Ian Boyd Tom Kline Chidi Ozurigbo Stacey Warren Vandana Rattan NIVEDITA RATHOD Supraja Budidedu Holly Stephens Naidu Marella Troy Hoshor Tim Fleischman Grady Duncan Scott Spilker Sys Admin Chris Hoffman David Macosko (Sys) Russell Potter Tanuja Jeedigunta Nicole McGuire Young Hong Karthik Sriram Mitchell Spano System Architect Will Ulmer Barry Plum Lucas Cushanick Amit Patkar Andrew Goodman Sheik Ali Preston Galarneau Jayesh Bhatnagar Emily Griffin Luis Merinero Herranz Hal Forman Rodrigo Reboucas Phil Dickinson William Ginardi Jim Cogan Andrew Barash Sean Healy Ian Iepson John Henning Pankaj Verma Julie Gleason Steven Nsubuga Aprika Krishna Vadlamudi Ron Ventura Andrzej Wzietal Carlo Inting Brent Mellow Miranda Ragland Alex Farmer Omar Latief Colin McGloin Yana Rouse Daniela VALVERDE Eva DeLorio WW Admin Rajesh Krishnaiah Shan Chidambaram Gabriel Wilson Roman IV Amit Nimse Carrie Hooper Tory Stellick Squire Kershner (Do Not Use) Georg Wenk Bernadett Dömötör Richard Lewis Tim Johnson Saranya Bhar Markus Thun Grant Neville Aparna Gopalakrishnan JP Villanueva Kimi Paprocki Scott Holman Kenneth Jensen Norina Barichello Kay Chapman Keith Schwartz Juan Peng Andreas Maly Dorothy Elaine Mangubat Dave Durant 𝓦𝓪𝓺𝓪𝓻 𝓐𝓱𝓶𝓮𝓭 Gabriela Sheehan Nicolas PARQUET Tim Bouscal Jayboy Anci Mark Reid Mark Klinski Shane Ross Neil Bertram Tim Coffey Andy Jimenez John Mitchell Tobias Forstmeier Georgia Dunkle Andrea Ormond Shaun Lieberman Tim Meehan Brooke Leister Dena Gluntz Verónica Jones erik brown Raja Patnaik Benedikt Administrador Dave DeMichele Josh Huang Cathy Clearman Chris Ford Russell Gibbins SalesForce Administrator Kevin Berkline Maida Hodzic Chris Edwards Vernon Baas Seth Wilson tim duval Data Integration Karellys Chacin Rojas System Admin Karellys Chacin Rojas jeronimo de Gregorio Linx Admin Support Operations Support Operations Support Operations Support Operations Support Operations Linx Admin Linx Admin Support Operations Support Operations Support Operations Support Operations Support Operations Support Operations Support Operations Support Operations Support Operations Support Operations Support Operations Linx Admin Support Operations Nicholas Rangas Piyush Shah Chuck Collins Drew Ardini Mike Prutz Reynold DeGuzman Giveclarity Developer Mark Dale Adrienne Cutcliffe Justin Williams Daniel Bennett Damien Marshall Bing Wang Karen McBride Keyna Hamilton Dan Lively Steve Mousseau Saket Kolhapure Sean Harris Scott Brown KianChong Tan Gillian Azcueta David Manwaring Ana Viteri Chandrakala Nomula Gavin Watkinson Ooi Joanna Saravanan Jagadeesan Daniel Cortes Karen Byrum Josh Kendall Ralph Blanco TJ Kelley Alan Morey Imani El Amin John Collins Daniel Hoechst Ian Sidle Brittany Bond Thomas Peng Deb Martin Jean Slusher Shariq Abbasi Robert Holmes Manisha Nundloll-Rice Ranjith Kumar David Speck Benji Schwartz-Gilbert Billy Meyers Rajesh Thumu Joanne Butterfield James Melville

Is it Fixed?

AP0 AP3 AP4 AP5 AP6 AP7 AP8 AP9 AP10 AP11 AP12 AP13 AP14 AP15 AP16 AP17 AP18 AP19 AP20 AP21 AP22 AP24 AP25 AP26 AP27 AP28 CS1 CS2 CS4 CS5 CS6 CS7 CS8 CS9 CS10 CS109 CS108 CS107 CS106 CS105 CS102 CS101 CS100 CS115 CS119 CS110 CS117 CS114 CS113 CS112 CS111 CS11 CS116 CS123 CS122 CS121 CS126 CS127 CS129 CS128 CS125 CS124 CS137 CS138 CS133 CS132 CS14 CS148 CS142 CS159 CS152 CS151 CS15 CS162 CS167 CS166 CS16 CS169 CS165 CS160 CS173 CS17 CS172 CS170 CS171 CS174 CS18 CS189 CS194 CS192 CS193 CS190 CS191 CS199 CS197 CS19 CS198 CS196 CS195 CS20 CS209 CS200 CS202 CS201 CS203 CS21 CS219 CS218 CS217 CS216 CS215 CS214 CS213 CS212 CS211 CS210 CS22 CS220 CS23 CS234 CS24 CS25 CS26 CS27 CS28 CS29 CS31 CS32 CS33 CS34 CS35 CS36 CS37 CS40 CS41 CS42 CS43 CS44 CS45 CS47 CS53 CS57 CS58 CS59 CS60 CS61 CS62 CS63 CS64 CS65 CS66 CS67 CS68 CS69 CS72 CS73 CS74 CS75 CS76 CS77 CS78 CS79 CS80 CS81 CS84 CS86 CS87 CS88 CS89 CS90 CS91 CS92 CS94 CS95 CS96 CS97 CS98 CS99 EU16 EU17 EU18 EU19 EU25 EU26 EU27 EU28 EU29 EU30 EU31 EU32 EU33 EU34 EU35 EU36 EU37 EU38 EU39 EU40 EU41 EU42 EU43 EU44 EU45 EU46 EU47 EU48 NA104 NA107 NA109 NA100 NA101 NA103 NA102 NA105 NA119 NA116 NA110 NA118 NA112 NA111 NA115 NA114 NA113 NA117 NA125 NA124 NA122 NA120 NA126 NA127 NA123 NA129 NA121 NA128 NA138 NA134 NA133 NA136 NA135 NA132 NA131 NA130 NA137 NA139 NA140 NA142 NA141 NA149 NA146 NA147 NA148 NA154 NA158 NA159 NA153 NA151 NA155 NA152 NA150 NA156 NA161 NA163 NA167 NA160 NA166 NA165 NA169 NA164 NA168 NA162 NA172 NA170 NA174 NA171 NA173 NA196 NA207 NA204 NA206 NA208 NA209 NA21 NA218 NA214 NA217 NA215 NA211 NA212 NA213 NA210 NA65 NA70 NA71 NA75 NA80 NA81 NA82 NA83 NA84 NA85 NA89 NA90 NA91 NA92 NA93 NA94 NA95 NA96 NA97 NA98 NA99 UM1 UM2 UM3 UM4 UM5 UM6 UM7 UM8 UM9

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.