Skip to main content
New Participant
Jan 22, 2025 7:21 AM UTC
Question

Expression evaluation error at function 'a!groupMembers': Insufficient permission

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

5 replies

stefanhelzle0001
Brainy
Jan 22, 2025 7:28 AM UTC

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

konduruc733182
Inspiring
Jan 22, 2025 8:15 AM UTC

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.

mathieud0001
Genius
Jan 22, 2025 12:14 PM UTC

If this is running inside a process model, another option is to run the Script Task Node as whoever designed the process model.

peter.lewis
Employee
Jan 22, 2025 2:10 PM UTC

Yeah this is probably the better option since you wouldn't need to change the visibility of the group.