that's great, thank you very much.
What if I need to add another query?
Say $groupDNs remains as it is, but I only want all English-speaking members, i.e. preferred language is EN.
so that would be the rules:
And how can I set the "look in (OU)" of the query?
thx a lot