Marius Dumitru Florea wrote:
All this personal information is stored in the XWiki.XWikiUsers object.
Go to your profile page, edit with the object editor and expand the
XWiki.XWikiUsers object. You'll see a lot of properties. I'm sure there
is a way to set those properties using the REST Api.
Hope this helps,
Marius
Hi Marius,
Thanks for the reply.
I checked it out and I can saw those properties. I too believe there is a
way to set those properties. I went through the Restful API documentation at
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI
and tried to set the property like below
.....
PutMethod putMethod = new
PutMethod("http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/XWiki/pages/user01/objects/XWikiUsers/0/properties/first_name=MyName");
putMethod.addRequestHeader("Accept",
MediaType.APPLICATION_XML.toString());
httpClient.executeMethod(putMethod);
......
Can somebody find anything wrong here? Am I missing some point?
Thanks,
Manish
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Altering-Access-Rights-from-REST-Api-tp52…
Sent from the XWiki- Users mailing list archive at
Nabble.com.