A colleague gave me an excel file with usernames, password and profile information and asked me if I could import them in Sitecore.
After writing an import tool (read about reading excel files here), I thought to be clever and used Sitecore serialization to import all users to the test environment.
Serialization works quite well. It creates a user file for every user (in the data\serialization\security folder) and even the roles can be serialized.
I copied these files to the test environment and started the deserialization process. All sitecore users were visible in sitecore, but none of the users where able to login.
That’s when I found out that passwords are not serialized!
So remember! Serialization of users looks nice, but you do need to create new passwords!
Latest posts by Vincent Keizer (see all)
- EntityFrameworkCore and IDesignTimeDbContextFactory - April 20, 2018
- Posting a form with files with jQuery Ajax - January 17, 2018
- EF Code First Index Column not created - March 17, 2017