Require Auth Users REST Endpoint Icon

Require Auth Users REST Endpoint

By Sal Ferrarello

Active Installs

30+

Last Updated

January 13, 2026

First Released

July 30, 2024

Download History (Last one month)


Contributors

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.

What this means

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

Author

Sal Ferrarello / salferrarello.com

No installation instructions provided.

No FAQ provided.

Changelog

No changelog available.

<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

Available Versions

Version Download Type
1.0.0 Download Stable
Development Download Trunk

Plugin Info

  • Version: 1.0.0
  • Last Updated: January 13, 2026
  • Active Installs: 30+
  • WordPress Version: 6.5 or higher
  • Tested up to: 6.9.4
  • PHP Version: 7.2 or higher
  • Tags:    
    api authentication endpoint rest users

Ratings


0.0 out of 5 stars. (0 reviews)

See all reviews
Scroll to Top