Yes you can remove the lines preceding with ";" as I was testing results.

$userobj can be replaced with $groupobj. My bad. It will give you the same results. Try the code.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's