Reputation: 367
I need to migrate Sitecore 6 user/domain/roles/groups to Sitecore 8.1 .
Can I serialize complete security(user/domain/roles/groups) entities, Is there any approach is there?
Upvotes: 4
Views: 1459
Reputation: 17000
It's also possible to use the Sitecore Package Designer to transfer both roles and users:
Bear in mind that any users transferred like this would have their password reset to a random value due to the fact that Sitecore stores passwords in a hashed format in the database.
To migrate domains, by default Sitecore will add these to /App_Config/Security/Domains.config
so either add this file into your Visual Studio project or copy it across instances.
Upvotes: 3
Reputation: 27132
Yes, you can serialize them and deserialize in the new environment.
Remember that all the passwords will be reset to b
.
Below there is a screen from Role Manager. There are 2 buttons:
Use first of the to serialize all roles on your Sitecore 6 solution. You will find new directory in your Data\serialization
folder called security
.
Copy the folder to your Sitecore 8 solution. Serialize Sitecore 8 roles, and then click Revert All Roles
on Sitecore 8 solution. You need to serialize Sitecore 8 roles first, cause if you click Revert
without serializing them first, all the roles which were not in Sitecore 6 but were in Sitecore 8 will be removed.
Repeat those steps for domains and users.
Chapter 2.2.3 of the Sitecore Serialization Guide covers the topic.
And here is a guide on Transferring user passwords between Sitecore instances
Upvotes: 7