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:

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"

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

function processCommand(){

   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
   }catch(err){logger.log("Error in function: " + err);}