Lightning roles

Lightning creates several roles and permissions during installation for use with content creation and review, and are directly based on the available content types. These roles are part of the Lightning Roles component.

For experienced developers, these roles may be unnecessary, as having many additional defined roles can cause the role management on the website to become unmanageable.

Although this feature is installed by default, it can be disabled during either of the following situations:

Other Lightning components that introduce roles will have those roles as an optional configuration, which will carry a dependency on lightning_roles.

Disabling role creation at install

Because Lightning uses sub-profiles during the installation process, you can use them to disable the Lightning Roles component in a sub-profile before installing Lightning.

By default, the Lightning Roles modules is located at /docroot/profiles/lightning/modules/lightning_features/lightning_core/modules/lightning_roles.

For more information on creating and editing installation profiles, see How to Write a Drupal 8 Installation Profile.

Disabling role creation after install

If, after installation, you want to prevent Lightning Roles from creating additional content creation and review roles, complete the following steps:

  1. Sign in to your Lightning website as an administrator.
  2. Navigate to Configuration > Lightning > Roles.
  3. Clear the check boxes for the role types that you do not want to be created by the Lightning Roles component.
  4. Click Save configuration.

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Contact supportStill need assistance? Contact Acquia Support