title: Wordpress REST API rest_user_cannot_view
body: <p>I'm trying to get details of specific users using Wordpress REST API. I'm sure that I use admin credential to get the details.</p>
  <p>But I keep getting the following response,</p>
  <pre><code>{
      message: &quot;Sorry, you’re not allowed to list users&quot;,
      code: &quot;rest_user_cannot_view&quot;
  }
  </code></pre>
  <p>I double-checked the credentials are of admin's. And admin has access to get user details.
  Tried using this solution, <a href="https://stackoverflow.com/a/36499422">https://stackoverflow.com/a/36499422</a>
  But it didn't work.</p>