[rt-users] cycling through usernames in RT::Users

matthew zeier mrz at intelenet.net
Sun Feb 17 22:14:20 EST 2002


Very cool, thanks!


----- Original Message ----- 
From: "Matthew D. Stock" <stock at cse.Buffalo.EDU>
To: "matthew zeier" <mrz at intelenet.net>
Cc: "Phil Homewood" <pdh at snapgear.com>; <rt-users at lists.fsck.com>
Sent: Sunday, February 17, 2002 3:56 PM
Subject: Re: [rt-users] cycling through usernames in RT::Users


> 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
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 





More information about the rt-users mailing list