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:
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.