Require authentication when accessing the /wp-json/wp/v2/users REST API endpoint.
As of April 2026, Require Auth Users REST Endpoint is a WordPress api plugin with 30 active installations and a 0/5 rating0. It has been downloaded 1.1K+ times in total. Requires WordPress 6.5+ and PHP 7.2+. Available on WordPress.org since 2024. Recently updated within the last 3 months. Top alternative: WP Consent API.
This plugin modifies the /wp-json/wp/v2/users endpoint to require authentication.
By default on a WordPress site you can list the users that have posted content on the site by visiting this endpoint.
This plugin requires the user to be authenticated to view the list of users.
If you go directly to the URL /wp-json/wp/v2/users you will get a 401 Unauthorized response.
But if you open a block editor page and run the following from the browser console,
await wp.apiFetch({path: 'wp/v2/users'});
you will get a list of users (because the wp.apiFetch() function authenticates the user’s call to the WordPress REST API).
Sal Ferrarello / salferrarello.com
| WordPress | 6.5+ requiredTested up to 6.9.4 |
| PHP | 7.2+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.