3

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?

0

3 Answers 3

7

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

1
  • Great! We just ran into a use case where we need that for our client.
    – Noldy
    Commented Dec 7, 2020 at 10:30
2

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.

0

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. enter image description here 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)

enter image description here enter image description here

enter image description here

2
  • How did you track it down in the source control then using serialization? Commented Sep 7, 2023 at 8:59
  • While you are configuring Sitecore CLI against root of your Solution path, create a folder under Solution root. So when you are doing pull/push operations using SC CLI, content will be serialized into that folder from which you can check-in/check-out the serialized items with source control.
    – Thamizh
    Commented Sep 7, 2023 at 18:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.