I am using WP REST API Version 2.0-beta7 together with WP OAuth Server version 3.1.91

After authenticating with the User Credentials grant type, a request to /wp-json/wp/v2/users?access_token=[ACCESS_TOKEN] returns data about all users, including their capabilities. This is private data so the access_token obtained during the authenciation flow is valid.

However, using the same access_token and making a request to /wp-json/wp/v2/users/me?access_token=[ACCESS_TOKEN] returns the following response:

  "code": "rest_user_cannot_view",
  "message": "Sorry, you cannot view this user",
  "data": {
    "status": 403

I was expecting the be able to see private data about the logged in user.

I am using Postman to create and send the API calls using the steps described in the Using Postman and WP REST API article from the WP OAuth Server knowledge base.

I appreciate suggestions on why the users/me endpoint is returning 403 when /users is returning private data.

closed as off-topic by Mark Kaplun, Mayeenul Islam, TheDeadMedic, kaiser Dec 1 '15 at 18:50

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • Purged comment thread on policy as unsuited for main site's comments. That's what we have meta for people, please. :) – Rarst Nov 30 '15 at 18:43
  • The WP API docs provide details common issues which includes authentication errors with /users/me – Andrew Jan 27 '16 at 0:46