Migration of Sitecore user accounts to the target environment via installing a package might result in user accounts not to be migrated completely, while the package installation ends successfully. The issue occurs because the installer does not respect password restrictions for generating a new password. Errors similar to the following can be found in the logs:
ManagedPoolThread #15 10:36:28 ERROR Failed to install the user 'sitecore\your_user'
Exception: System.Web.Security.MembershipCreateUserException
Message: The password supplied is invalid. Passwords must conform to the password strength requirements configured for the default provider.
Source: System.Web
at System.Web.Security.Membership.CreateUser(String username, String password, String email)
at Sitecore.Security.Accounts.User.Create(String userName, String password)
at Sitecore.Install.Security.AccountInstaller.InstallUser(PackageEntry entry)
To migrate user accounts, consider one of the following options:
<add name="sql" type="System.Web.Security.SqlMembershipProvider" connectionStringName="security" applicationName="sitecore" minRequiredPasswordLength="10" minRequiredNonalphanumericCharacters="1" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" />
to:
<add name="sql" type="System.Web.Security.SqlMembershipProvider" connectionStringName="security" applicationName="sitecore" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" />