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.