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
Penrod Software 25Penrod Software 25 

Need to change a username in Trailhead

We have two usernames in Trailhead that we want to use in our Salesforce production instance. These are not the main username of the org. When we try to change them we get the error -"Please do not change usernames in the Trailhead Playground." Salesforce support said they were unable to help. Is there anything else we can do?
SandhyaSandhya (Salesforce Developers) 
Hi,

This is a restriction in trailhead playground and you cannot change the usernames of the trailhead playground which were created by default when you create the trailhead playground.

Best Regards,
Sandhya
Abu Wahid 7Abu Wahid 7
Hi Penorod,
Salesforce doesn't want you to change the user name, but if you really have to (like no other options) then decative the User object's validation rule "NoUsernameChangesAllowed" and update the user name. After that make sure to activate the validation rule again.

Thanks,
AW
Mr. Kirill YunussovMr. Kirill Yunussov
Yes, just disable that validation rule on User.
Trat FullerTrat Fuller

Interesting discovery is that in the Playgrounds where the username is duplicated, that validation rule is not present. 

Pawel Dobrzynski (Dev)Pawel Dobrzynski (Dev)
You saved my life @Abu Wahid