Title: Require Auth Users REST Endpoint
Author: Sal Ferrarello
Published: <strong>30. juli 2024</strong>
Last modified: 13. januar 2026

---

Søk gjennom innstikk

![](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

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

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

 * [Detaljar](https://nn.wordpress.org/plugins/require-auth-users-rest-endpoint/#description)
 * [Omtalar](https://nn.wordpress.org/plugins/require-auth-users-rest-endpoint/#reviews)
 * [Utvikling](https://nn.wordpress.org/plugins/require-auth-users-rest-endpoint/#developers)

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

## Skildring

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)

## Omtalar

There are no reviews for this plugin.

## Bidragsytarar og utviklarar

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

[Omset “Require Auth Users REST Endpoint” til ditt eige språk.](https://translate.wordpress.org/projects/wp-plugins/require-auth-users-rest-endpoint)

### Interested in development?

[Les kjeldekoden](https://plugins.trac.wordpress.org/browser/require-auth-users-rest-endpoint/),
sjekk [SVN-lageret](https://plugins.svn.wordpress.org/require-auth-users-rest-endpoint/)
eller abonner på [utviklingsloggen](https://plugins.trac.wordpress.org/log/require-auth-users-rest-endpoint/)
med [RSS](https://plugins.trac.wordpress.org/log/require-auth-users-rest-endpoint/?limit=100&mode=stop_on_copy&format=rss).

## Om

 *  Version **1.0.0**
 *  Last updated **6 månader sidan**
 *  Active installations **30+**
 *  WordPress version ** 6.5 eller nyare **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.2 eller nyare **
 *  Language
 * [English (US)](https://wordpress.org/plugins/require-auth-users-rest-endpoint/)
 * Tags
 * [api](https://nn.wordpress.org/plugins/tags/api/)[authentication](https://nn.wordpress.org/plugins/tags/authentication/)
   [endpoint](https://nn.wordpress.org/plugins/tags/endpoint/)[rest](https://nn.wordpress.org/plugins/tags/rest/)
   [users](https://nn.wordpress.org/plugins/tags/users/)
 *  [Avansert vising](https://nn.wordpress.org/plugins/require-auth-users-rest-endpoint/advanced/)

## Vurderingar

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

## Hjelp

Har du noko å seia? Treng du hjelp?

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