[rt-users] cycling through usernames in RT::Users
Matthew D. Stock
stock at cse.Buffalo.EDU
Sun Feb 17 18:56:14 EST 2002
matthew zeier writes:
> I was hoping to find something more complete than that. What I have
> right
> now, which isn't working (I don't get anything on dumpValue()):
Try something like:
use RT::Group;
my $group = new RT::Group($RT::SystemUser);
$group->Load('groupname');
$mo = $group->MembersObj;
while ($groupmember_obj = $mo->Next) {
$user_obj = $groupmember_obj->UserObj;
print $user_obj->Name,"\n";
}
You need to start with the group, then iterate through the membership,
converting those to users.
-Matt
More information about the rt-users
mailing list