[xwiki-users] Adding user to defaul group with appropriate rights through xml rpc.....
Hi All, I have created user through xml rpc. But the user dont have any rights and the user not added in the default group. how to add the user in XWiki All Group and give the rights through xml rpc?? Any idea.?? I surfed net and this nabble forum but i didnt get the solution. Thanks, Nithya. -- View this message in context: http://n2.nabble.com/Adding-user-to-defaul-group-with-appropriate-rights-thr... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, Nithya Vembu wrote:
Hi All,
I have created user through xml rpc. But the user dont have any rights and the user not added in the default group. how to add the user in XWiki All Group and give the rights through xml rpc??
Any idea.?? I surfed net and this nabble forum but i didnt get the solution.
XWiki.XWikiAllGroup is a page like any other. Have you tried adding an object of class XWiki.XWikiGroups (set the member property to the user you want to add) to this page? It should work the same for any group. Hope this helps, Marius
Thanks, Nithya.
Hi Marius, Thanks for the reply. This is my code snippet which i tried before posting this post. XWikiObject xobj = new XWikiObject(); xobj.setClassName("XWiki.XWikiAllGroups"); xobj.setProperty("member", "test1"); rpc.storeObject(xobj); But i am getting the error that xobj is null in rpc.storeObject(xobj).. Whether i have create some pages?? Here i want to add the user to xwikiallgroup.. Please guide me. Thanks, Nithya. -- View this message in context: http://n2.nabble.com/Adding-user-to-defaul-group-with-appropriate-rights-thr... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Tue, Mar 9, 2010 at 6:28 PM, Nithya Vembu <[email protected]> wrote:
Hi Marius,
Thanks for the reply.
This is my code snippet which i tried before posting this post.
XWikiObject xobj = new XWikiObject(); xobj.setClassName("XWiki.XWikiAllGroups");
"XWiki.XWikiAllGroups" is the page where to sotre the object, it's className on the other side must be "XWiki.XWikiGroups"
xobj.setProperty("member", "test1"); rpc.storeObject(xobj);
But i am getting the error that xobj is null in rpc.storeObject(xobj).. Whether i have create some pages??
Here i want to add the user to xwikiallgroup..
Please guide me.
Thanks, Nithya. -- View this message in context: http://n2.nabble.com/Adding-user-to-defaul-group-with-appropriate-rights-thr... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Jean-Vincent Drean -
Marius Dumitru Florea -
Nithya Vembu