Hi,I have a situation where I have 2 groups, one is an administrator group and the other is a basic user group.There is a basic user action to submit a comment and upon submitting, an email will be sent to the members of admin group and basic group.Now while a basic user adds comment and submit it, there is a process error which says -
An error occurred while evaluating expression: =toemailaddress( a!forEach( items: a!groupMembers( group: cons!HS_ADMIN_GROUP, direct: true, memberType: "USER" ).data, expression: user(fv!item, "email") )) (Expression evaluation error at function a!groupMembers: Expression evaluation error at function 'a!groupMembers': Insufficient permission).
FYI - Process model security --> Admin group - administrator access, Basic user group - Initiator access.Can someone help me fix this issue.Thanks in advance
Discussion posts and replies are publicly visible
Sure, check the group properties. Make sure that "Visibility" is set to "Public". Else a user not member of the group will not be able to see its members.
https://docs.appian.com/suite/help/24.4/Group_Management.html#properties
As Stefan mentioned take a look at the Visibility of the group. For more details on the usage consideration please check the documentation of the a!groupMembers() - Usage Considerations function.
If this is running inside a process model, another option is to run the Script Task Node as whoever designed the process model.