Title: Posts restricted in REST API
Last modified: December 20, 2021

---

# Posts restricted in REST API

 *  Resolved [Julie](https://wordpress.org/support/users/wonderfullie/)
 * (@wonderfullie)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/posts-restricted-in-rest-api/)
 * Hi,
 * I’m using Groups on a website where all the front end will be soon in React.
   
   So, all the queries will be made with REST API. Unfortunately, I noticed that
   posts with restrictions are not in /wp-json/wp/v2/posts, even if my current user
   shoud see the posts.
 * Is this normal ?
 * Thanks,
 * Julie.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kento](https://wordpress.org/support/users/proaktion/)
 * (@proaktion)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/posts-restricted-in-rest-api/#post-15188127)
 * Hi Julie,
 * That’s a good case to use Groups! Can you please let us know how have you tested
   this? I’m asking because even if you’re logged in with an authorized user on 
   the WordPress back end, this does not imply that your REST API request is duly
   authorized to access those posts. Your request will need to be duly authorized
   to have those restricted posts included. See [https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/)
   and for your test you can use [https://github.com/WP-API/Basic-Auth](https://github.com/WP-API/Basic-Auth)(*
   not* for production).
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘Posts restricted in REST API’ is closed to new replies.

 * ![](https://ps.w.org/groups/assets/icon-256x256.png?rev=983146)
 * [Groups](https://wordpress.org/plugins/groups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/groups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/groups/)
 * [Active Topics](https://wordpress.org/support/plugin/groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/groups/reviews/)

## Tags

 * [access control](https://wordpress.org/support/topic-tag/access-control/)
 * [api](https://wordpress.org/support/topic-tag/api/)
 * [group](https://wordpress.org/support/topic-tag/group/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [memberships](https://wordpress.org/support/topic-tag/memberships/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kento](https://wordpress.org/support/users/proaktion/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/posts-restricted-in-rest-api/#post-15188127)
 * Status: resolved