I have a requirement to change a username in Active Directory from domain\testuser1 to domain\testuser2 But my concern is whether the new changes will be synced automatically with SharePoint so that I can login with new username i.e. domain\testuser2 without any problem?

If not auto sync then How can SharePoint profiles be synced with Active Directory?

Thanks in advance.

1 Answer 1


SharePoint will not recognize the changed sAMAccountName until the following is executed:

$user = Get-SPUser -Identity "domain\testuser1" -Web https://siteCollectionUrl 
Move-SPUser -Identity $user -NewAlias "domain\testuser2" -IgnoreSid
  • Hi @MSallal Thanks for post. For Login part I am clear but want to check Is there any Powershell or stsadm command to sync it? I found this link as well addressing the same sharepointdiary.com/2013/01/… Jan 6, 2020 at 15:02
  • yes use $user = Get-SPUser -Identity "oldusername" -Web webUrl Move-SPUser -Identity $user -NewAlias "newUerName" -IgnoreSid Jan 6, 2020 at 15:08
  • Fine Thanks for the update Jan 6, 2020 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.