AnsweredAssumed Answered

get Members of a Group and their Properties (userName), (Javascript)

Question asked by testuser on Feb 27, 2015
Latest reply on Oct 4, 2018 by mehar460

i want to get all members of a group and to show the userName of every Member. If i choose a specific member from the group (like the first one), it works fine. If i try to iterate over the group i get a type-Error "TypeError: Cannot read property "userName" from undefined ". What am i doing wrong?

var group = people.getGroup("GROUP_myGroup");

    var members = people.getMembers(group);
    logger.log(members[0].properties.userName);     // works!
    for(i=0; i<= members.length; i++) {
       logger.log(;  // error

thanks for your help!