Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Stop administrator login

Security covered Under active development 145 sites

This module prevents users from logging in as the default administrator (user 1) to protect against accidental password loss or security risks. It also offers an option to block the entire "administrator" role. Site administrators can still access user 1 using Drush if necessary.

This is a very lightweight module that will stop users from being able to login as user 1 and optionally block the entire "administrator" role. Site administrators will still be able to login as user 1 by using drush when needed. The idea behind this is to protect a site from the accidental loss of user 1's password. Also from a security perspective (not sharing passwords) and for auditing configuration/content changes it is much better if user 1 is not used.

This module is a great companion when you are using an IAM like OpenID Connect.

Warning

If you enable this module, and do not have access to the machine using drush— you will NOT, I repeat, NOT be able to log back in as user 1. This will be sad for you, but here is your warning.

Make sure you have a personal administrator account with sufficient rights before enabling this module. If you decide on blocking the "administrator" role as well (as set at /admin/people/role-settings), make sure the other roles in the website have sufficient permissions to manage the site.

You can read more about this and how to recover access in the documentation section here: https://www.drupal.org/docs/contributed-modules/stop-administrator-login

Drupal 10–11

Ask your assistant about Stop administrator login

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.

Activity

Tracked releases
2
Tracked since
Aug 2024
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
8.x-1.6 Stable 10–11 Sep 22, 2026
8.x-1.5 Stable 8–11 Aug 3, 2024