cancel
Showing results for 
Search instead for 
Did you mean: 

Get User Properites from a group

kregers
Champ in-the-making
Champ in-the-making
Hey There,

I'm currently developing my first workflow. My goal is to assign a task to a group (completed) and email that group to let them know they have stuff to do. I realize this can be accomplished using rules etc. but I want to do it by hand to get a better understanding of advanced workflow.

I have succesfully used the  following:


var members = people.getMembers(people.getGroup("GROUP_HelloWorld"));

Now the logic in my head says I should be able to loop through the array that comes back from members and perform some sort of magic voodoo to get that users properties (in my case email address or at a very minimum username)

I've tried


member = people.getPerson(members[x]);
username = member.propeties.username

but that doesn't work. I've also tried:



member = members[x];
username = member.username

but that fails as well.

Any help that the experts, or at least slightly more advanced them me could provide on this would be greatly appriciated.

Cheers,

S.
1 REPLY 1

lotharm
Champ on-the-rise
Champ on-the-rise
Would this do the trick:

member = people.getPerson("admin");
username = member.properties.userName;
email = member.properties["{http://www.alfresco.org/model/content/1.0}email"];

might be just the case of "username" and the "propeties" typo in your post?