User rest api not working
-
Hello team,
We need to fetch all user or authors data from wordpress using this api https://example.com/wp-json/wp/v2/users/.
But when trying to fetch user individual data to passing id https://example.com/wp-json/wp/v2/users/4 some ids are working and displaying data but some ids are getting an error please check below status.
{
“code”: “rest_user_cannot_view”,
“message”: “Sorry, you cannot view this resource.”,
“data”: {
“status”: 401
}How to solve this problem please help us
Thank You
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘User rest api not working’ is closed to new replies.