I’ve been crawling at the REST API documentation in https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI still I’m unsure what could be the best way to:
- check if a given user exists (and probably get basic metadata about it). For this I suppose I have to look for the page that hold the user info. Something like query https://xwiki.instance/rest/wikis/xwiki/spaces/XWiki/pages/<username> should do the trick or is there a better way ?
- remove an user from XWiki. Here I assume I should delete the above page but what about the group membership ? I should remove the user from the group(s) he is member of as well. How would you do that efficiently ?