Hi,
I’m fairly new to xWiki and working with APIs. There are a few things that I don’t seem to grasp yet.
I’m attempting to manipulate Users and User Groups through the REST API.
I want to automate the user management from another app (creating users, changing their rights and groups, etc.) and am trying to understand the syntax I would need for that.
I created a new user profile via
PUT http://ip:port/xwiki/rest/wikis/xwiki/spaces/XWiki/pages/testuser
and added the object
POST http://ip:port/xwiki/rest/wikis/xwiki/spaces/XWiki/pages/testuser/objects
className=XWiki.XWikiUsers&property%23first_name=Test&property%23last_name=User%property%23password=test123!
but I can’t log in with that user and it’s not available through the user directory.
I found the User API documentation, but I don’t quite understand how to use it…
It says there:
- Direct XWiki.XWikiUsers XObject access: This is totally not recommended and you shouldn’t do that. Use this API instead.
which is what I guess I did… I don’t understand how to access UserProperties via REST API, though.
I’ve been sitting on this problem a few days now and can’t seem to get anywhere.
Any help is greatky appreciated!