title: Certain users are unable to login to CRM after organization export/import: "No Microsoft Dynamics CRM user exists with the specified domain name"
body: <p>After doing an export and import of a CRM organization and doing user mapping certain users are unable to login to CRM. They get the following error:</p>
  <blockquote>
  <p><strong>No Microsoft Dynamics CRM user exists with the specified domain name
  and user ID</strong></p>
  <p>A Microsoft Dynamics CRM user record does not exist with
  the specified domain name and user ID.</p>
  </blockquote>
  <p>When looking at the affected system users in CRM they all appear to have the correct security roles. Reassigning security roles, deactivating and re-activating the users or re-typing their domain name does not have any effect.</p>
  <p>This issue only affects around 1% of the users. The rest are able to login without problems.</p>
  <p>I have been able to solve the issue for single users by changing their domain name to an unused domain user-name, creating a new system user with the original domain name, and reassigning all records to the new system user.</p>
  <p>This approach requires unused users in Active Directory. How do I fix the root cause of the issue instead?</p>