Back to top anchor
Documentation

Managing user accounts - who and why

We are updating our documentation library to be ready for the Sector 10! Find out more in our Sector 10 roadmap or head straight to our collection of Sector 10 - Changes and Updates.

User role
Content Editor Content Administrator Drupal Sitebuilder
Task
Backend
Topic
Security User roles and permissions
Product
Sector Ecosystem

The Sector Starter Kit includes preconfigured user roles, user profiles, and permissions - out of the box, the ability to create, add, edit, or delete users is only available to the Drupal sitebuilder role.

The Sector Drupal sitebuilder role is the default administrator role in Drupal. It is used in Sector as a Site Builder and Administrator role with full access to all site building features. This role should only ever been given to trusted developers and experienced sitebuilders.

Sector approach to user roles and permissions

Permissions on a need-to-have basis

When editorial users have the ability to manage user accounts, they have more permissions than they need to do their day-to-day tasks. If you consider the number of editorial users on your site, that could be a considerable security issue.

Giving users only the permissions they need reduces the risk of unauthorised access to sensitive or critical areas of a system.

Users need to have clearance and knowledge appropriate to their roles

User administration permissions have critical security implications - user administration requires training and expertise in security, privacy, and advanced Drupal administration.

Giving Drupal's 'Administer users' permission to a user role lets users with that role administer any user on the website. This means that they are able to administer the UID1 account - the 'superuser', i.e. the user account with the greatest permissions on the website.

When you allow users to administer other users, you potentially give them access to user accounts with greater permissions than their own. Only the most trusted users should be given this ability, as it allows them to use accounts which have more control over the site.

Administer permissions, such as administer content and administer users, are usually reserved for the most trusted site users. These administration privileges grant users extensive control of the specific module(s) described by the permission title.

Next to the the security implications, user administrators also need to be aware how Drupal works behind the scenes - for example, users are linked to their content, so if an administrator deletes a user they might delete all the content that is created by that user. 

Sector out of the box

In Sector, rather than adding this hefty permission to an editorial user role, user administrator rights are only available to the sitebuilder user role. The Drupal sitebuilder role is the Sector label for the Drupal Administrator role that comes with Drupal core and has access-all-areas by default. Out of the box, the Drupal 8+ permissions for the Drupal Administrator cannot be restricted. So rather than assigning user administration rights to further roles, Sector out of the box leaves the permissions with a role inherited by Drupal core.  

Highly privileged administrative accounts should not be used for high risk or day to day user activities.

Sector Content Editors and Content Administrators can still manage their own user account - e.g. change their username and password - but can't manage other users. This should be enough for them to complete their standard website tasks.

I need to know more about how user roles and permissions are set-up in Sector. 

Our guide on Preconfigured user roles, user profiles and permissions is here to help! 

For your site 

We recommend creating a risk assessment strategy for your site, along with a site-specific strategy for user roles and permissions. Group permissions by task and create additive roles that ensure access is limited to the right staff at the right time. Review your user table regularly and always block users that no longer require access. Make sure to reassign content to current users before deleting user profiles. 

Last updated

Sector 10 is coming!

Find out more in our Sector 10 roadmap.

Need Help?

Sector is brought to you by Sparks Interactive - supporting Sector from Wellington and Auckland

Open Source award winner!

Sparks Interactive are delighted to accept the Open Source Use in Business award for Sector and the Sector.nz open source platform.

Subscribe for Sector updates