You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

is_in_group()

Usage

is_in_group(group, principal)

Description
Predicate function that returns if a given user is member of a given group.

Example

${is_in_group(first(find('Group', 'name', 'Admins')), me)}

Search results for "is_in_group()"

is_in_group()

Predicate function that returns if a given user is member of a given group.

New in v3.6: The optional parameter checkHierarchy allows to check for indirect group membership. If the given principal is member of another group which is member of the given group the result will be true.

is_in_group(group, principal [ , checkHierarchy = false ])