The UserGroups() UDF returns an array so you need to do a for each next loop to view each element on its own.

To get nested groups there is the ListNestedGroups() UDF. It's a bit more complicated to use then the UserGroups UDF but it does work.

UDF Library » ListNestedGroups() - Query AD for all groups of an account + nested


Edited by Mart (2008-11-03 04:20 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.