Here's what I'm trying to do. Any help would be greatly appreciated!
Upon saving new content, set a user reference field with all of the users that belong to the group content's audience that have the administrator member role.
Use case: We're using organic groups to manage committees. Then, we create evaluation nodes of these committees. Because the committee (group) membership changes, we want to save the group administrators to a user reference field within the evaluation node.
Here's what I'm trying to do with out the check on group member's user role.
After saving new content
Content is of Type X
Get group members from group audience
Loop on group_members as list-item
=>Add an item to a list: Selected List is node:field-evaluation-members Data Selector: list-item
My other ideas are:
1) Call a separate component from within the loop to check user's role, but I'm unsure how to pass the loop list-item to the component.
2) Set data value with UID of list-item:uid or something similar.