Title: Require Auth Users REST Endpoint
Author: Sal Ferrarello
Published: <strong>Gorffennaf 30, 2024</strong>
Last modified: Ionawr 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

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

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

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

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

## Disgrifiad

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)

## Adolygiadau

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.

Cyfranwyr

 *   [ 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 **6 mis yn ôl**
 *  Active installations **30+**
 *  WordPress version ** 6.5 neu uwch **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.2 neu uwch **
 *  Language
 * [English (US)](https://wordpress.org/plugins/require-auth-users-rest-endpoint/)
 * Tags
 * [api](https://cy.wordpress.org/plugins/tags/api/)[authentication](https://cy.wordpress.org/plugins/tags/authentication/)
   [endpoint](https://cy.wordpress.org/plugins/tags/endpoint/)[rest](https://cy.wordpress.org/plugins/tags/rest/)
   [users](https://cy.wordpress.org/plugins/tags/users/)
 *  [Advanced View](https://cy.wordpress.org/plugins/require-auth-users-rest-endpoint/advanced/)

## Graddau

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

## Cyfranwyr

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

## Cefnogaeth

Rhywbeth i’w ddweud? Angen help?

 [Gweld y fforwm cefnogi](https://wordpress.org/support/plugin/require-auth-users-rest-endpoint/)