Using Basic Authentication as an Administrator, I am getting an error code
401 Unauthorized : [rest_cannot_view_plugins] Sorry, you are not allowed to manage plugins for this site. error when I attempt to access the GET
/wp-json/wp/v2/plugins endpoint of my server. I can pull Post and Page info with no problem, but when I query against the plugins, I’m getting the 401 error. I’ve confirmed that the userid used in the API call should be able to manage plugins using the CLI tool:
# wp user list-caps $ USER | grep plugin activate_plugins edit_plugins update_plugins delete_plugins install_plugins
Any pointers would be appreciated.