The user.
A group name or ID, or an array of group names or IDs, to check membership against. A string is treated as a single group.
The claim in the user object that contains groups.
If true, requires the user to be in all specified groups; if false, checks if the user is in at least one of the groups.
true if the user is in the specified groups, false otherwise.
Checks if a user is a member of a specified group or groups.