Custom Security Role Field Type in Sitecore
Sitecore is missing an out of the box field type for Roles. EXM used to include one, but that has been deprecated in recent updates for Sitecore 8.2.
So i thought i'd whip one up; add this class to your solution. Modify the Roles function to filter the roles to the ones you have created either using a prefix in the name (like i have) or the Domain property of the Role.
Next go your Core database in Content Editor and navigate to "/sitecore/system/Field Types/". Add a folder for your custom field, and then add an item with the Template type of "Template field type". Enter the name of your assembly and fully qualified class name that contains the SecurityRoleList class. Switch back to Master database.
Now you can select this field type when creating templates in Sitecore. This will render as a list of your roles.









