AnsweredAssumed Answered

Usage of listMembers

Question asked by vamirr on Sep 20, 2011
Latest reply on Sep 20, 2011 by mrogers
I'm hoping someone and shed some light on what I'm not understanding about listMembers().   My reference is to the wiki page here: http://wiki.alfresco.com/wiki/3.4_JavaScript_Services_API#Get_list_of_site_members

According to that wiki article, the listMembers() method gets a map of members of the site filtered by user name and/or user role.


Every call I make to listMembers results in "Can't find method org.alfresco.repo.site.script.Site.listMembers()."

This script is being run from the Company Home/Data Dictionary/Scripts folder.

function processCommand(){
   try{

   sites = siteService.listSites(null,null,0);
   site = sites[0];                                              // Verified my site object is as intended.
   siteMembers = site.listMembers(null, null);     // Fails here with: Can't find method org.alfresco.repo.site.script.Site.listMembers().
     
   }catch(err){logger.log("Error in function: " + err);}
}

processCommand();

Outcomes