I have a SharePoint farm with 10 users. What will happen if I delete those 10 users from AD and create 10 users with same name? Will SharePoint consider them as different 10 users or same? If it considers them as different users how to make SharePoint consider them as same users? I think I worte it too complicated
Yes, the same user ID (account name) in AD will end up with different SID. SID is what is actually used for each user internally. You need to use the commands listed to migrate from the old SID to the new SID for a user account.
What do you mean by same ID? Are you talking about user name?
Just explaining little bit more.
When you delete the users from AD but not removed the SharePoint, after that if you recreate the user(with same ID) then it will cause the access denied for the users.
Actually SharePoint use the SID to recognize a user account, when you delete the account and recreate at AD level then SID will change, In that case SharePoint treat it as new User.
Now you have two options to fix this after deletion and recreation.
1) manual, remove user from all the sites and User Information list( where ever user has permission).
2) run the move-spuser command to migrate the profile the old ID to new ID. in your case old and new ID are same then you need a temp id. so that you can move it…command should be like this
Move-SPUser -Identity "DOMAIN\JaneDoe" -NewAlias "Domain\TempUser"
Move-SPUser -Identity "DOMAIN\TempUser" -NewAlias "DOMAIN\JaneDoe"
Hi there,
Same ID or name in AD will not make SharePoint recognize it as the same user. For this you need to use the cmdlt Move-SPUSer. See https://technet.microsoft.com/en-us/library/ff607729(v=office.15).aspx
Marc