0

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.

2

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
| improve this answer | |
  • 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/… – Mohammed Faisal Jan 6 at 15:02
  • yes use $user = Get-SPUser -Identity "oldusername" -Web webUrl Move-SPUser -Identity $user -NewAlias "newUerName" -IgnoreSid – MSallal Jan 6 at 15:08
  • Fine Thanks for the update – Mohammed Faisal Jan 6 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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