a!isUserMemberOfGroup() Function

Identifies whether or not a user is a member of the specified groups. By default, this function returns true if the user is in at least one of the specified groups.


a!isUserMemberOfGroup( username, groups, matchAllGroups )

username (User): The username of the user for whom you wish to check for group membership.

groups (Group Array): One or more groups to check for membership.

matchAllGroups (Boolean): Determines whether to match any or all of the provided groups. When set to true, the function will check that the user is a member of ALL of the groups. Default: false




Returns true when the user belongs to the specified group, except when security rules prohibit users from knowing this information.

For example, this function returns false to keep membership awareness secure in the following instance:

  • A high privacy group is passed in AND
  • A user other than the logged in user is passed in AND
  • The function is executed within the context of a basic user who is not an administrator of the high privacy group

A basic user is not allowed to know whether another user is a member of such groups.

a!isUserMemberOfGroup() cannot be used to define a column of process report data or in a process event.


You can copy and paste these examples into the Expression Rule Designer to see how this works.

a!isUserMemberOfGroup("john.doe", 2) returns false

  username: loggedInUser(), 
  groups: a!groupsByName("Process Model Creators")

The above expression returns true if you are in the Process Model Creators group

  username: loggedInUser(),
  groups: { 5, 6, 7 },
  matchAllGroups: true

The above expression returns false if you are not in all of the following groups: Application Users, Designers, and Quick App Creators.

Old Versions

There are older versions of this function. You can identify older versions by looking at the name to see if there is a version suffix. If you are using an old version, be sure to refer to the corresponding documentation from the list below.

Old Versions Reason for Update

Now accepts multiple groups and can check whether the user is a member of any or all groups. Also moved to the a! domain.

To learn more about how Appian handles this kind of versioning, see the Function and Component Versions page.

Open in Github

On This Page