Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Disable User 1

Security covered Under active development 245 sites

This module disables the user with ID 1, commonly known as the administrator, by logging them out on any page access. This is done by checking a configuration setting in your Drupal site's settings.php file.

The Disable User 1 module provides a simple solution to disable the user with ID 1 in Drupal. This module checks for a configuration setting in the settings.php file to determine whether to disable user 1. When enabled and configured appropriately, it ensures that user 1 is logged out upon accessing any page, thus preventing access to the site with the administrator account.

You can enable the module on production environment by adding the following:
$config['disable_user_1.settings']['disable_user_1'] = TRUE;

Sponsored and developed by:

Drupal 10–11

Ask your assistant about Disable User 1

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
4
Tracked since
Apr 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.4 Stable 10–11 Jun 24, 2024
1.0.3 Stable 9–10 May 1, 2024
1.0.2 Stable 9–10 May 1, 2024
1.0.0 Stable 9–10 Apr 30, 2024