Add selection of multiple groups' ids for directory queries