Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Custom Permissions

9,808 sites Security covered
View on drupal.org

This module allows administrators to create and manage custom permissions, assigning them to specific roles. These custom permissions can be tied to particular paths or routes within the Drupal site, controlling access to those areas. Historically, it also created several default permissions, though some of these have since been incorporated into Drupal core.

This very light-weight module allows additional permissions to be created and managed through a administration form. It uses the menu access system to allow or disallow access to it.

On the administration page a user is able to create a permission with name and path(s).

These permissions can then be assigned to roles on the permissions page.

Important security note: If any permission has a given path, any person with a role having that permission can visit that path.

The name of the module changed from "Site Configuration Permissions" to "Custom Permissions" in the 7.x version and above.

8.x-2.x

The current supported branch. Custom permissions use routes instead of paths, in line with modern Drupal. As of 8.x-1.x through the work of utiks, custom permissions are configuration entities, exportable via features and configuration manager. From 6.x-2.x on, the module allows additional permissions to be created and managed through a administration form.

On the administration page a user can set the permission name and permission path(s)

By default the following permissions are created:

  • Administer account settings
  • Administer date-time
  • Administer error logs
  • Administer file system

(Some of the permissions created historically by default in this module (such as "administer modules"!), have become new, non-custom, Drupal core permissions.)

Similar projects

This module should really be used as a last resort— if there is a module specifically for adding more fine-grained permissions in some category, it is probably best to use that. Some we know about:

Supporting this Module

You can support Agaric's overall contributions to Drupal and a bit beyond by supporting Drutopia at opencollective.com/drutopia. Thanks!!

Activity

Total releases
2
First release
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Release date
8.x-2.3 Stable May 2, 2025
8.x-2.2 Stable May 2, 2025