Skip to main content
January 22, 2025
Question

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

  • January 22, 2025
  • 5 replies
  • 0 views

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
January 22, 2025

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
January 22, 2025

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
January 22, 2025

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
January 22, 2025

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