Installing Sitecore users through packages does not work


Description

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)

Solution

To migrate user accounts, consider one of the following options: