Title: Require Auth Users REST Endpoint
Author: Sal Ferrarello
Published: <strong>7 сар 30, 2024</strong>
Last modified: 1 сар 13, 2026

---

Search plugins

![](https://ps.w.org/require-auth-users-rest-endpoint/assets/banner-772x250.png?
rev=3128061)

![](https://ps.w.org/require-auth-users-rest-endpoint/assets/icon.svg?rev=3128061)

# Require Auth Users REST Endpoint

 By [Sal Ferrarello](https://profiles.wordpress.org/salcode/)

[Download](https://downloads.wordpress.org/plugin/require-auth-users-rest-endpoint.1.0.0.zip)

 * [Details](https://mn.wordpress.org/plugins/require-auth-users-rest-endpoint/#description)
 * [Reviews](https://mn.wordpress.org/plugins/require-auth-users-rest-endpoint/#reviews)
 * [Development](https://mn.wordpress.org/plugins/require-auth-users-rest-endpoint/#developers)

 [Support](https://wordpress.org/support/plugin/require-auth-users-rest-endpoint/)

## Description

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](https://salferrarello.com)

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Require Auth Users REST Endpoint” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Sal Ferrarello ](https://profiles.wordpress.org/salcode/)

[Translate “Require Auth Users REST Endpoint” into your language.](https://translate.wordpress.org/projects/wp-plugins/require-auth-users-rest-endpoint)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/require-auth-users-rest-endpoint/),
check out the [SVN repository](https://plugins.svn.wordpress.org/require-auth-users-rest-endpoint/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/require-auth-users-rest-endpoint/)
by [RSS](https://plugins.trac.wordpress.org/log/require-auth-users-rest-endpoint/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0.0**
 *  Last updated **5 сар ago**
 *  Active installations **30+**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/require-auth-users-rest-endpoint/)
 * Tags
 * [api](https://mn.wordpress.org/plugins/tags/api/)[authentication](https://mn.wordpress.org/plugins/tags/authentication/)
   [endpoint](https://mn.wordpress.org/plugins/tags/endpoint/)[rest](https://mn.wordpress.org/plugins/tags/rest/)
   [users](https://mn.wordpress.org/plugins/tags/users/)
 *  [Advanced View](https://mn.wordpress.org/plugins/require-auth-users-rest-endpoint/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/require-auth-users-rest-endpoint/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/require-auth-users-rest-endpoint/reviews/)

## Contributors

 *   [ Sal Ferrarello ](https://profiles.wordpress.org/salcode/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/require-auth-users-rest-endpoint/)