WordPress plugin intelligence profile

JM Admin Role Lock | How you stop creating new administrator accounts

Keeps the Administrator role limited to users who already have it.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.1.0
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 5.0 · PHP 7.2
Directory statusactive
Last directory update15 Oct 202618d ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records JM Admin Role Lock | How you stop creating new administrator accounts version 1.1.0 as active, updated 18d ago and tested up to WordPress 7.1.

Overview

About this plugin

JM Admin Role Lock stops new Administrator accounts. Users who are already Administrators stay Administrators. Nobody else can be given that role.

The plugin blocks the role when WordPress saves it:

  • The Users screens and the users REST API no longer offer Administrator, except while editing a user who already has it.
  • A new user cannot be created as an Administrator. If other code requests that role anyway, the account is created as Subscriber.
  • An existing user who is not an Administrator cannot be promoted, from the admin screens, the REST API, or code that assigns the role.
  • The default role for new users cannot be Administrator. If it already was, activation changes it to Subscriber.
  • An Administrator can still be demoted. After that, the role cannot be given back.

json in a jm-admin-role-lock folder inside the uploads directory. On every request it compares that file with the database. A user who has the Administrator role in the database but is not listed in the file loses the role before the request continues.

When an allowed Administrator is demoted, their ID is removed from the file.

There is no settings screen.

Multisite Super Admin is a network privilege, separate from the Administrator role on a site. This plugin does not change Super Admin.

What a direct database edit can still do

A SQL query can write the role into the database. json is still the list created by the plugin.

Deleting that file makes the plugin take a new snapshot from whoever is an Administrator in the database at that moment. Anyone who can edit files on the server can edit the JSON and add an ID.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • administrator
  • roles
  • security
  • users
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 5.0 · PHP 7.2
Update activity15 Oct 202618d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.