LdapTools\Query\Builder\ADFilterBuilder::isRecursivelyMemberOf PHP Method

isRecursivelyMemberOf() public method

Performs a recursive search of group membership to determine if the account belongs to it. If you are not using a schema and want to use this function you should pass 'memberOf' as the second argument.
public isRecursivelyMemberOf ( string $group, string $attribute = 'groups' ) : MatchingRule
$group string The name, GUID, SID, LdapObject or DN of a group
$attribute string The attribute to query against. Defaults to 'groups'.
return LdapTools\Query\Operator\MatchingRule
    public function isRecursivelyMemberOf($group, $attribute = 'groups')
    {
        return new MatchingRule($attribute, MatchingRuleOid::IN_CHAIN, $group);
    }