I am Using WordPress rest API with OAuth 1. When i try to Fetch users list using wp-json/wp/v2/users/ I only get Admin user detail, not all users. I have completed OAuth authentication process ang got oauth token and secret. I have tried POST man as well REST client for Mozilla. Also i get “rest_cannot_create” when trying to create any POST or User.
Leave a Reply
You must be logged in to post a comment.
you will want to make sure that the users you want to appear have the “list_users” capability.
https://developer.wordpress.org/plugins/users/roles-and-capabilities/#adding-capabilities