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

---

Søg 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

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

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

 * [Detaljer](https://da.wordpress.org/plugins/require-auth-users-rest-endpoint/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/require-auth-users-rest-endpoint/#reviews)
 * [Udvikling](https://da.wordpress.org/plugins/require-auth-users-rest-endpoint/#developers)

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

## Beskrivelse

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)

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Require Auth Users REST Endpoint” er open source-software. Følgende personer har
bidraget til dette plugin.

Bidragsydere

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

[Oversæt “Require Auth Users REST Endpoint” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/require-auth-users-rest-endpoint)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/require-auth-users-rest-endpoint/),
tjek [SVN repository](https://plugins.svn.wordpress.org/require-auth-users-rest-endpoint/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/require-auth-users-rest-endpoint/)
via [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**
 *  Senest opdateret **6 måneder siden**
 *  Aktive installationer **30+**
 *  WordPress-version ** 6.5 eller højere **
 *  Testet op til **6.9.4**
 *  PHP-version ** 7.2 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/require-auth-users-rest-endpoint/)
 * Tags
 * [api](https://da.wordpress.org/plugins/tags/api/)[authentication](https://da.wordpress.org/plugins/tags/authentication/)
   [endpoint](https://da.wordpress.org/plugins/tags/endpoint/)[rest](https://da.wordpress.org/plugins/tags/rest/)
   [users](https://da.wordpress.org/plugins/tags/users/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/require-auth-users-rest-endpoint/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

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

[Se alle anmeldelser.](https://wordpress.org/support/plugin/require-auth-users-rest-endpoint/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

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