Re: [rt-users] User ID in a script?

2008-03-25 Thread Kevin Falcone
On Mar 25, 2008, at 3:16 PM, John Arends wrote: Gene, When running your script I get this error: [Tue Mar 25 19:12:39 2008] [crit]: Can't locate object method order_by via package RT::Users at ./rtusers.pl line 14. (/usr/lib/perl5/vendor_perl/5.8.5/RT.pm:346) Can't locate object method

[rt-users] User ID in a script?

2008-03-17 Thread John Arends
I wrote a quick perl script that outputs a bunch of information about all the users in my RT instance. I noticed that the ID numbers are all over the place. One of my early users was created with an ID of 22, and then the next user has an ID of 29, and then the next one is somewhere in the mid

Re: [rt-users] User ID in a script?

2008-03-17 Thread Gene LeDuc
Hi John, You can use this script as a starting point to loop through all your users: #!/usr/bin/perl -w ### External libraries ### use strict; ### Modify the next line to fit your installation use lib (/opt/local/software/rt-3.6.3/lib); package RT; use RT::Interface::CLI qw(CleanEnv loc); use