Skip to main content

Roles

Roles (Beta)

Roles (Beta) is a rebuilt screen for managing dotCMS roles. Browse and search your role hierarchy on the left; on the right, manage the selected role's members, permissions and tool groups.

Roles (Beta), with the role tree on the left and a role's Users tab on the right

Adding Roles (Beta) to the Admin Menu#


Roles (Beta) isn't in any menu by default, and there is no feature flag to enable. To make it available, add the Roles (Beta) portlet to a tool group, and make sure that tool group is assigned to the roles that should see it. See Roles and Tools.

Once added, it appears in the menu as Roles (Beta) and opens at /dotAdmin/#/roles-beta. The existing Roles & Tools tool keeps its own menu item.

To go back to the previous tool, remove Roles (Beta) from the tool group and add Roles & Tools.

Who Can Use It#

Roles (Beta) is intended for CMS Administrators. Creating, editing and deleting roles, adding and removing members, and changing a role's tool groups all require the CMS Administrator role.

A user who isn't a CMS Administrator can browse roles and their members and tool groups only if they also have the legacy Roles & Tools tool.

Finding Roles#


The ROLES panel shows your roles as a tree. Click the arrow next to a role to show its child roles, and click a role to open it.

  • The number next to a role is how many users are assigned to that role directly.
  • To find a role anywhere in the tree, type at least three characters in Filter roles. Matching roles are shown with their parent roles expanded.
  • Long role names are shortened; hover over a name to see it in full.

System and default roles, such as CMS Administrator, Back-end User and Front-end User, are under System.

The role tree filtered to show matching roles

The top of the right panel shows the selected role's name, its number of users and tool groups, and a System or Locked label if the role has one. Below are three tabs: Users, Permissions and Tools.

Managing a Role's Users#


The Users tab lists everyone who has the role, with their Name, Email, and where the role comes from (Granted From):

  • A blue label means the user was assigned this role directly.
  • A grey label shows the parent role the user was assigned. Users assigned to a parent role also have all of its child roles, so they appear here too.

Use Search user to find a member, and the controls at the bottom to page through members, 20, 40 or 60 at a time.

A child role's Users tab, showing a member inherited from its parent role

Adding a User to a Role#

  1. Click Add User.
  2. Search for the user by name or email.
  3. Click the user.

The user is added immediately; there's nothing else to save. Users who already have the role aren't listed.

The Add User search

Removing a User from a Role#

  1. Hover over the user's row and click the trash icon.
  2. Confirm.

You can only remove users who were assigned this role directly (blue label). To remove an inherited member, remove them from the parent role named in Granted From. Users are removed one at a time.

Setting a Role's Permissions#


The Permissions tab sets what the role can do on each site and folder, using the same permission screen as Roles & Tools. Choose a site or folder under Add Site/Folder, set permissions, optionally turn on Cascade Changes, and click Apply Changes.

For how permissions work, see Role Permissions and Permissions.

The Permissions tab

Choosing a Role's Tool Groups#


The Tools tab controls which tool groups, the sections of the admin menu, users with this role can see. Each row shows a tool group and the tools it contains.

Check a tool group to give it to the role, or uncheck it to take it away. Changes are saved as soon as you click.

The Tools tab

A user sees the tool groups of the roles they're assigned directly. Tool groups aren't passed between parent and child roles. If a tool group appears checked and greyed out with a parent role in Granted From, it is assigned to that parent role; to give it to users of this role, assign them the parent role, or check it on this role directly.

To create tool groups or change which tools they contain, use Tools (Beta), where tool groups are called sections.

Creating a Role#


  1. Click New at the top of the ROLES panel. To create a child role instead, hover over the parent role in the tree and click +.
  2. Enter a Role name.
  3. Optionally, enter a Key, a unique identifier that developers can use to refer to the role.
  4. Choose the Parent role, or leave None (Top Level) to create a top-level role.
  5. Under Can Grant, choose what can be assigned to this role. All three are selected by default:
    • Users: users can be added to and removed from the role. Turn it off for a role that should only group other roles; users then can't be assigned to it from any tool.
    • Permissions: the role can be given permissions on sites, folders and content. When it's off, the role's Permissions tab says "Permissions are not editable for this Role".
    • Tools: tool groups can be assigned to the role on its Tools tab.
  6. Optionally, add a Description.
  7. Click Save.

The new role is selected in the tree.

The Add Role dialog

Editing or Moving a Role#


  1. Select the role, click the â‹® menu at the top right and choose Edit. You can also right-click the role in the tree.
  2. Change any of the fields and click Save.

To move a role to a different place in the hierarchy, choose a new Parent. Choose None (Top Level) to make it a top-level role. A role can't be moved under itself or one of its own child roles.

Choosing a new parent role in the Edit Role dialog

System and locked roles, such as CMS Administrator, Back-end User and Front-end User, can't be edited or deleted; Edit and Delete are unavailable for them.

Deleting a Role#


  1. Select the role, click the â‹® menu and choose Delete, or right-click the role in the tree and choose Delete.
  2. Confirm.

Deleting a role removes it from all its users, and removes its permissions and tool groups. This can't be undone.

A role can't be deleted while it has child roles; delete or move them first. A role used in a workflow can't be deleted either.

The Delete Role confirmation

Differences from Roles & Tools#


  • Tool groups are created and edited in the Tools (Beta) tool, not here. Roles (Beta) only assigns existing tool groups to roles.
  • Moving roles: change a role's Parent in the Edit dialog. There is no drag-and-drop.
  • Removing users: one at a time; there is no bulk removal.
  • Permissions: the Permissions tab uses the same screen as Roles & Tools.