My goal is to (completely) delete users from a multi site installation using the REST API.
Using DELETE or GET ends with a rest_user_invalid_id error code even though the user (and its id) exist.
curl --user "superadmin:TOKEN" -X GET https://example.com/wp-json/wp/v2/users/5
The authentification works just fine. What is even more obscure is the fact that for some random users this works.
I do not use WordFence or to my knowledge any other security plugin (and I am quite sure about this).
What's the API's problem and how do I solve? Any hints are appreciated. Thank you!