Feature-5502

Add selection of multiple groups' ids for directory queries