[rt-devel] Understanding RT:Users

Jesse Vincent jesse at bestpractical.com
Fri Sep 21 03:40:08 EDT 2001


You want something like this


 CleanEnv();
 LoadConfig();
 DBConnect();
 
 my $users_obj    = new RT::Users($RT::System); 
 		#new takes an RT::User or RT::CurrentUser, not a username
 $users_obj->MemberOfGroup('6');
 
 while (my $user = $users_obj->Next) {
 
     dumpValue($user);
 
 }
 $RT::Handle->Disconnect();
 
> 

-- 
http://www.bestpractical.com/products/rt  -- Trouble Ticketing. Free.




More information about the Rt-devel mailing list