AnsweredAssumed Answered

How to get the list of users

Question asked by anweber on Jul 19, 2006
Latest reply on Jan 8, 2007 by andy

   How is  it possible to find the list of users via a code written in JS?

   I tried that:

   log("============= begin");
   var results;
   var i;
   var result;
   var searchString = "TYPE:\"{}user\"";
   results = search.luceneSearch(searchString);
   log ("nb =" + results.length);
   for (i in results){
   log("=============== End");

I obtain no nodes.  But this Lucene search string works in the node browser.

  Thanks for your help,


PS : In the documentation about the JavaScript API (see, the example is  not correct :

var nodes = luceneSearch("TEXT:alfresco");
should be written

var nodes = search.luceneSearch("TEXT:alfresco");