I am trying to figure out if Sitecore Content Serialization (SCS) can be used instead of the Unicorn. The only thing I don't see so far is that if SCS can serialize Users and Roles? Is it possible at the moment?
3 Answers
No, this is not yet supported but is in the roadmap. (I am the Product Manager for the Sitecore CLI.)
The documentation for the CLI and Sitecore Content Serialization is found here: https://doc.sitecore.com/developers/100/developer-tools/en/sitecore-content-serialization.html
This documentation is for the "legacy" serialization functionality, which is accessed via the Developer toolbar. https://doc.sitecore.com/developers/100/sitecore-experience-manager/en/serialize-an-item-or-a-tree-of-items-484805.html
Based on Sitecore 10 documentation, yes - https://doc.sitecore.com/developers/100/sitecore-experience-manager/en/serialize-an-item-or-a-tree-of-items-484805.html.
You can serialize security entities. You can configure predicates to filter which users and roles are serialized.
We also had same requirement to serialize Security entities. We are able to serialize using 'Legacy' way of serialization as @nickwesselman mentioned here. Below are the steps.
But Sitecore stores serialized files in default format such as .user for Users and .role for Roles. But we need in YML format. For that we changed the
SerializationType
to YAML
format in below config App_Config\Sitecore\CMS.Core\Sitecore.Serialization.config
(We created a patch for this change as Sitecore recommendation)