I've been looking for a while now and have done a number of deployments for roles and permissions manually, but is there any way to create a package (or equivalent of) for Roles/Permissions in Sitecore?
It's a seriously tedious job to manually deploy new roles with permissions when you don't have the option to do a full deploy from one environment to the next.
Just curious if anyone's managed to do this or has a way of making this easier?
Cheers
User Roles give Administrators the ability to control what users can do within the system, without giving full administrator access. A Role is a collection of Permissions which could be based on a job function. Permissions are assigned to Roles and Roles are assigned to Users.
3 Primary Rules for RBAC: Role assignment: A user can exercise a permission only if the subject has been assigned a role. Role-based authorization: A user's active role must be authorized. With rule 1 above, this rule ensures that users can take on only roles for which they are authorized.
User and roles can be added to packages. In the package designer, there is a "Security Accounts" button in the Add ribbon that enables you to add users/roles to the package.
As for permissions, they are stored in the items that they are set on. So to deploy the permissions, you should add the items to the package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With