Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Roles/permissions itemisation?

Tags:

sitecore

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

like image 406
Dave Goosem Avatar asked Jul 19 '12 04:07

Dave Goosem


People also ask

What is user roles and permissions?

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.

What are the three primary rules for RBAC?

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.


1 Answers

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.

like image 190
Ruud van Falier Avatar answered Jan 01 '23 18:01

Ruud van Falier