how can i get user details using javascript.
Hello,
Find details on XWiki javascript API in this page http://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/FrontendResources/JavaScriptAPI/
You can call the XWiki Rest API from javascript and get details on users: http://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI#HXWikiRESTfulAPIDocumentation