Problem: Retrieve list of privilidged users automagicallu.
What is the best way to do this?
I’m guessing it’s not attacking the db directly.
Having poked around the code, i tried to replicate what the
configuration>users page with the perl api but due to my lack of perl
foo i failed quite badly.
Does anyone have the skeleton code at least with the
CurrentUser/Session part (this is the bit i couldn’t do… so far)?
Cheers,
Kristian
my $users = new RT::Users(RT::SystemUser);
$users->LimitToPrivileged;
Kristian Davies wrote:
Problem: Retrieve list of privilidged users automagicallu.
What is the best way to do this?
I’m guessing it’s not attacking the db directly.
Having poked around the code, i tried to replicate what the
configuration>users page with the perl api but due to my lack of perl
foo i failed quite badly.
Does anyone have the skeleton code at least with the
CurrentUser/Session part (this is the bit i couldn’t do… so far)?
Cheers,
Kristian
The rt-users Archives
Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com
Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
Keep up with me and what I’m up to: http://theillien.blogspot.com
my $users = new RT::Users(RT::SystemUser);
$users->LimitToPrivileged;
Ahh-haa… My code is like a rubik’s cube, if I shake it hard enough
all the bits fall in place.
This is now working.
Thanks very much!
-Kristian