title: TFS Delete duplicated users after domain change
body: <p>We've just migrated our TFS 2013.3 server to a new domain. </p>
  
  <p>It all appeared to go to plan - I migrated the server and then migrated the Identities successfully, but instead of <em>changing</em> user identities to their new domain accounts, it has just added new accounts so now everybody is in the system <em>twice</em>.</p>
  
  <p>In general I've been able to mitigate the symptoms of this, but it has broken user capacities in Web Access - each user's name appears <em>twice</em>, and their capacity graph only shows correctly if both names have the same capacity value assigned to them. One user does not get a capacity graph at all even if we attempt this awful workaround.</p>
  
  <p>I could easily delete the old users from [Tfs_Configuration.dbo.tbl_Identity] and/or [tbl_TeamConfigurationCapacity] but I have no idea if this would be a safe thing to do, or what references to these entries might exist elsewhere in the database. (There shouldn't be any information linked to these users any more, as they have all been migrated, but that won't help me if deleting these rows corrupts the database). I may just have to snapshot the VM and give it a try to see what happens, as this is a complete showstopper.</p>
  
  <p>Any help would be very much appreciated.</p>