Enhanced Permission Manager simplifies Drupal role permission management by allowing you to create reusable permission presets. These presets can be applied to roles instantly through the UI or via Drush commands, saving significant administrative time. You can also capture existing role permissions into presets, compare presets to roles, and filter permissions efficiently.
Enhanced Permission Manager (EPM) saves sets of permissions as presets that you apply to roles in one step, capture from an existing role, export and import as JSON or as Drupal recipe config, or generate from starter templates. It answers who can do what, and why, in a Permission explorer, and records every change to a role's permissions in a Permission history that you can compare and revert. It also adds a Permissions Manager: a permissions grid you can work from the keyboard, with filters kept in the address, changes you can undo before and after saving, and saves that never overwrite a change someone else made meanwhile.
Status: stable, for production use. This page describes 1.4.3. On Drupal 10 or 11.0, use 1.4.2 or later: from 1.1.0 to 1.4.1, presets did not work there. On any core, use 1.1.0 or later: in 1.0.0, Administer permission presets alone let a user grant any permission through a preset, Duplicate returned an error and generating from a template failed on PHP 8.3 and older.
Part of the Enhanced Manager Suite
The Enhanced Manager modules each rework one part of Drupal's admin and work on their own: install only the ones you need. Enhanced Manager Suite adds one dashboard that shows which of them are installed and links to each, and status blocks with each one's health.
- Enhanced Taxonomy Manager (ETM): a tree view for large taxonomy vocabularies, with merging, translations and undo.
- Enhanced Menu Manager (EMM): a tree view for large menus, with link health, delegation and undo.
- Enhanced Commerce Management (ECPM): a dashboard, order and customer lists, reports and Views data for Drupal Commerce.
- Enhanced Permission Manager (EPM): permission presets, a permissions grid, and an explorer and history of who can do what.
- Enhanced Extension Manager (EXM): a searchable module list with dependency trees and uninstall previews.
- Enhanced Manager Suite (EMS): the dashboard and status blocks that tie the family together.
- Enhanced Admin eXperience (EAX): a command palette for the admin pages.
Features
Presets
- A preset is a named list of permissions stored as configuration, so it is exported and deployed with the rest of your site's configuration.
- Build a preset by ticking permissions grouped by module, with a filter box, or copy every permission of an existing role into it.
- Apply a preset to several roles at once, either adding its permissions to each role's (Merge) or replacing the role's permissions with the preset's (Replace). Replace first shows what each role will lose, and can save the old permissions as a snapshot preset, so applying that snapshot undoes the change. If a role changes while you review, Replace stops for it, says who changed it, and shows the new preview. Permissions that do not exist on the site are skipped and reported.
- Duplicate a preset as the starting point for a variation.
- Export one preset or all of them as JSON, and import JSON from a file or pasted text. Import checks the whole file first and previews what will be created, overwritten, skipped or renamed. Permissions from modules a site lacks are kept, so a preset survives a round trip.
- Export a preset as recipe config actions: core's
grantPermissionsfor each role you choose, including roles the site does not have, with optionalcreateIfNotExistsfor the role and aninstalllist of the modules that provide the permissions. Restricted grants carry a# Restrictedcomment. Copy the YAML or download it. - Import a
recipe.ymlon the same import form: each role it grants permissions to becomes a preset, with the same preview and restricted-permission warnings as JSON. The YAML is only read, never run, and importing grants nothing until someone applies the preset. - Generate a preset from five starter templates (Content Editor, Content Administrator, Site Builder, User Administrator, Developer), built from the permissions your installed modules define. Templates never include a restricted permission; the preview lists what was left out and why. Template names and descriptions are translatable.
Who can do this, and why
- The Permission explorer answers three questions, each with an address you can bookmark: which roles grant a permission and how many active and blocked accounts hold each; every permission an account has and the role behind it, from core's own access calculation; and how two roles differ.
- It counts user 1 when core's super-user policy is on, flags grants made redundant by the Authenticated role, and says why a permission is restricted. The account view marks the grants that every signed-in account gets through Authenticated.
Permission history
- Every change to a role's permissions or administrator flag is recorded, whatever made it: core's pages, the Permissions Manager, presets, Drush, recipes, configuration import, module installs and uninstalls, and code that writes the role's configuration directly.
- Each change shows when, which role, who made it, where from, and the permissions added and removed. Filter by role, permission or source.
- Compare a role at two points in its history, or with now, and revert it to just before or just after a change. A revert lists exactly what it removes and adds, asks before granting restricted permissions, and is recorded itself. If the role changes while you review the revert, it stops and says who changed it.
- Changes are kept for 365 days and up to 10,000 changes by default; cron removes older ones.
Permissions Manager
- At
/admin/people/permissions-manager: every permission against every role, grouped by module, with a filter box, a module list and an A–Z bar. Role headers and the permission column stay in view while the grid scrolls. - The grid is one stop for the Tab key. Inside it the arrow keys move between cells, Home and End go to the ends of a row, Page Up and Page Down move by a screen, Ctrl+Space ticks a whole column and Shift+Space a whole row.
- Show or hide role columns, focus on one role and list what it has or lacks, and mark the boxes left empty where another shown role has the permission. Only differences narrows the grid to permissions that some of the shown roles have and others lack, and Changed only to your unsaved changes. Each active filter shows as a button that removes it, with Clear all, and every filter is kept in the address, so a filtered grid can be reloaded or shared.
- Changes wait in a bar at the bottom of the page, and are marked in the grid with a dot and a tint, until you save them together (also with Ctrl/Cmd+S). Ctrl/Cmd+Z undoes the last unsaved change, and after a save, its Undo button reverses the save. The browser warns before you leave with unsaved changes. Saving a grant of a restricted permission, or more than 20 changes at once, first asks in a dialog with Cancel focused; it names each restricted permission and the role that would get it.
- A save never overwrites a change someone else made to a role after you loaded the page. That role is left alone and your changes to it stay on the page; the page says who changed it, when, where from and what. One click loads their changes with yours on top, ready to save. The other roles in the same save are saved. A save that is refused for any other reason says why.
Restricted permissions
- EPM marks a permission restricted when its module does, when it runs code, switches accounts or hands out every role (such as Administer modules or Switch users), when it assigns an administrator role or a role that holds restricted permissions, or when it is a text format with no HTML restrictions, such as Full HTML.
- Applying a preset asks for confirmation in the browser whenever the preset contains a restricted permission. Drush asks only for the restricted permissions the role does not already have.
Admin theme and accessibility
- EPM's pages follow the admin theme: Claro, Default Admin (in core from Drupal 11.4) or Gin, including dark mode, with a solid focus ring and red danger buttons that stay readable in the dark, and the page behind a dialog dimmed the way the theme dims it. They keep working in Windows high contrast (forced colors) and with reduced motion. The look comes from the Enhanced design language the suite shares; EPM carries its own copy and needs no other module.
- Text and field borders meet WCAG AA contrast, and links in running text are underlined, so nothing relies on color alone. Wide tables scroll inside the page with their first column and header in view, and the account explorer fits a phone without scrolling sideways.
- EPM's pages share one row of tabs: Permissions Manager, Permission Presets, Permission explorer and Permission history.
Drush
epm:list-presets,epm:show-preset,epm:diff(compare a preset with a role),epm:apply-preset(--resetreplaces the role's permissions) andepm:capture-preset.epm:exportandepm:import(--conflict=skip|overwrite|rename),epm:export-recipe(--roles) andepm:import-recipe,epm:list-templatesandepm:generate.epm:who-can,epm:user-permissionsandepm:compare-rolesfor the explorer's three questions;epm:history(--role,--permission,--source,--limit, 50 by default),epm:history-diffandepm:history-revertfor the history.epm:apply-presetrefuses administrator roles. It andepm:history-revertask before removing permissions or granting restricted ones (--yesanswers for you), and refuse Anonymous and Authenticated unless given--force. Unlike Replace in the browser,epm:apply-preset --resetsaves no snapshot preset first.epm:capture-presetoverwrites a preset of the same name.
Requirements
- Required: Drupal core
^10.3 || ^11 || ^12(Drupal 10.3 or later, Drupal 11 or Drupal 12). - Required: PHP as your Drupal version requires (8.1 or later for Drupal 10, 8.3 or later for Drupal 11, 8.5 or later for Drupal 12). EPM asks for nothing more.
- Required: the core User module, which every site has. No contributed modules.
- Optional: the core Views module. The permission history is available to Views as Permission changes, for your own lists and exports. Give such a view the View permission reports permission or a stricter one.
- Optional: Role Delegation. EPM treats its "Assign role role" permissions as restricted when the role is an administrator role or holds restricted permissions, and the User Administrator template includes only the others.
- Optional: content modules whose permissions the templates pick up when they are installed, such as Content Moderation, Media, Layout Builder, Metatag, Pathauto, Paragraphs and Webform.
- Optional: the core Help module. Shows EPM's help page.
- Optional: Drush 12 or later, for the Drush commands. The admin pages work without Drush.
Installation
- Add the module with Composer. EPM needs no contributed modules, so Composer adds only EPM:
composer require drupal/epm - Enable it. It needs only the core User module, which is always on:
drush en enhanced_permission_manager - Nothing has to be set up first. Grant permissions at People » Permissions:
- Administer permission presets (restricted): list, export (as JSON or as a recipe) and delete presets. None of these changes what any role can do.
- View permission reports (restricted): the Permission explorer and the Permission history, read only. It is restricted because it shows which accounts can take over the site. Give it to auditors and support staff.
- Administer roles and permissions (core, restricted): the Permissions Manager, reverting a change, and the history settings; with Administer permission presets, also creating, editing, duplicating, importing, generating and applying presets. Nobody can grant a permission through a preset that they could not grant on core's permissions page.
- The pages are listed under Configuration » People: Permission Presets (
/admin/people/permission-presets), Permissions Manager (/admin/people/permissions-manager), Permission explorer (/admin/people/permission-explorer) and Permission history (/admin/people/permission-history). - History settings are on the Settings tab of the Permission history (
/admin/people/permission-history/settings): whether changes are recorded, and how long they are kept (0 removes a limit). Keep cron running so old changes are removed. - After each later update of the module, run
drush updb.
Upgrading
- From 1.0.0: run
drush updb. An update step changes nothing but lists the roles that have Administer permission presets without Administer roles and permissions; from 1.1.0 those roles can only view, export and delete presets. Review presets generated from the 1.0.0 templates: they could include Full HTML, Assign the Administrator role (with Role Delegation), Administer roles and permissions, Administer modules and Devel's Switch users. The Composer package is nowdrupal/epm; the old namedrupal/enhanced_permission_managerstill resolves to it. Drush scripts that apply presets without a prompt may need--yes. - From 1.1.x to 1.2.0: run
drush updb. It creates the permission history table and its settings. Until it has run, roles save as before and nothing is recorded. - From 1.2.x to 1.3.0: no database updates;
drush updbfinds nothing to run. A Permissions Manager tab left open across the upgrade is asked to reload before it saves. - From 1.4.0 or 1.4.1 to 1.4.2: no database updates. On Drupal 10 and 11.0, presets saved with 1.0.x come back.
- From 1.3.x to 1.4.0: no database updates. Clear caches after updating: the libraries changed, and the old
css/epm-tokens.cssfile is gone. The grid's Inconsistent Only filter is now Only differences, and EPM's pages have their own row of tabs instead of sharing Account settings' row.
Similar projects
- Core's permissions pages (
/admin/people/permissionsand one page per role) remain the reference. EPM writes the same role permissions, so you can use both. - Filter Permissions adds role and module filters to core's permissions page. Choose it if filtering the core grid is all you need; EPM adds presets, a separate grid and Drush commands.
- Role Delegation lets a role assign roles to users without Administer roles and permissions. It answers a different question (who may give roles to users), and works alongside EPM. EPM's templates leave out any permission to assign the administrator role, or a role holding restricted permissions.
- Custom Permissions creates new permissions for chosen routes. EPM works only with the permissions that modules already define.
- Recipes, in core since Drupal 10.3, can grant permissions to roles when a recipe is applied. They suit setting up a new site from code; EPM suits adjusting roles on a running site and keeping reusable sets, and converts presets to and from recipe config.
Support and maintenance
Report bugs and ask for features in the issue queue. Each release has notes describing what changed.
This project is not covered by Drupal's security advisory policy. Until it is, security issues are handled in the public issue queue and fixed in ordinary releases.
Maintainer
Created and maintained by deadnorth at Dead North, which also takes on custom Drupal work. If this module saves you time, you can buy me a coffee.
Ask your assistant about Enhanced Permission Manager
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.