AnsweredAssumed Answered

Empty people-nodes after people.getMembers()

Question asked by buurd on Jun 24, 2010
Latest reply on Jun 24, 2010 by darryl_staflund
Hi!

I have a javascript where I want to send an email to all users in a group. I get all the users with the following line:

 people.getMembers(people.getGroup('GROUP_My_Group')

The problem I encounter is when I would like to get some information out of the each people-node properties. The code below only prints "null".


var aMember = people[0];
var properties = aMember.properties;
logger.log(properties);


Any idea why this happens. aMember gets the following printout:


Node Type: {http://www.alfresco.org/model/content/1.0}person, Node Aspects: [{http://www.alfresco.org/model/content/1.0}ownable, {http://www.alfresco.org/model/application/1.0}configurable, {http://www.alfresco.org/model/system/1.0}referenceable]

Thanks in advance
Roland

Outcomes