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.
But I keep getting the following response,
{
message: "Sorry, you’re not allowed to list users",
code: "rest_user_cannot_view"
}
I double-checked the credentials are of admin's. And admin has access to get user details. Tried using this solution, https://stackoverflow.com/a/36499422 But it didn't work.