[rt-users] How Can I Grow A Set Of Users

Al Joslin allen.joslin at gmail.com
Tue May 26 12:08:00 EDT 2015


I need to assemble a set of users from a list of user Ids

	# gives me a list of _all_ the users
    $users = RT::Users->new($session{'CurrentUser'});

	# empties the list 
    $users->CleanSlate; # empty the list

	#doesn’t work
    my $user1 = RT::User->new($session{'CurrentUser'});
    $user1->Load(2250);
    $users->Join($user1);

	#doesn’t work    
    my $user2 = $users->NewItem;
    $user2->Load(147511);

	# how can I add User elements to the User list ?





More information about the rt-users mailing list