rest api – Sorry, you are not allowed to list users

Question

When I hit: https://example.com/wp-json/wp/v2/users

I am getting response:

{
"code": "rest_user_cannot_view",
"message": "Sorry, you are not allowed to list users.",
"data": {
"status": 401
}
}

I am able to view users in admin and via REST API I can create and modify posts so I am authenticated but for some reason I am unable to list users. This user has administrator role.

Anyone know what issue could be?

0
Guerrilla 1 month 2021-08-21T13:39:46-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse