Returns a collection of groups to which the user belongs.
This is a read-only property; it can be viewed but not set.
Each element of the returned collection is a Group object. To add users to a group, use the AddUser method of the Group object.
VBScript
user.Groups
Perl
$user->GetGroups();