Tmeister / wp-api-jwt-auth

A simple plugin to add JSON Web Token (JWT) Authentication to WP REST API
GNU General Public License v2.0
549 stars 159 forks source link

403 / rest_user_cannot_view when getting users #206

Open harmjanr opened 4 years ago

harmjanr commented 4 years ago

I have the JWT auth plugin running for a couple of months already, all going fine. Since a couple of days, I get a 403 / rest_user_cannot_view with the message "Sorry, you are not allowed to list users.".

In the functions.php, I printed the user capabilities of the user calling the API. list_users IS listed there, so the user has those permissions.

I have no clue where to search, also since I didn't update the plugin recently. I tried to update the .htaccess as described, but this doesn't fix it either.

Screenshot 2020-07-22 at 11 09 14

Who knows how to fix this?