cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of listMembers

vamirr
Champ on-the-rise
Champ on-the-rise
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();
1 REPLY 1

mrogers
Star Contributor
Star Contributor
The prototype is wrong.

Needs to be listMembers(null, null, 0, false)