[rt-users] Priviledged user creation
Todd Chapman
todd at chaka.net
Sat Jul 22 14:29:53 EDT 2006
Roughly, like this:
#!/usr/bin/perl
use strict;
use warnings;
use lib qw(/opt/rt3/local/lib /opt/rt3/lib);
use RT;
use RT::User;
RT::LoadConfig;
RT::Init;
while (<>) {
my @args = split;
my $user = RT::User->new( $RT::SystemUser );
my ($rv, $msg) = $user->Create( Name => $args[0], EmailAddress => $args[1],
Privileged => 1 );
print STDERR "Error creating $args[0]: $msg\n" unless $rv;
}
On Sat, Jul 22, 2006 at 05:34:11PM +0530, Prasad Deshpande wrote:
> Hi,
>
>
>
> I am using RT Version 3.2.3 on RH 9. I want to create around 200
> privileged users in RT. Is there any way through which I can create
> these users without manually entering it. Currently I am not using LDAP.
>
>
>
> If anybody has already done it or knows how it can be done, please let
> me know the same.
>
>
>
> Thanks in advance.
>
>
>
> Regards,
>
> Prasad Deshpande
>
>
>
>
>
>
>
>
>
> DISCLAIMER:
> This message,including any attachments contains confidential and privileged information for the sole use of the intended recipient(s), and is protected by law. If you are not the intended recipient, please destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
> Bajaj Auto reserves the right to record, monitor, and inspect all email communications through its internal and external networks. Your messages shall be subject to such lawful supervision as Bajaj Auto deems necessary in order to protect its information, interests and reputation. Bajaj Auto prohibits and takes steps to prevent its information systems from being used to view, store or forward offensive or discriminatory material. If this message contains such material, please report it to abuse at bajajauto.co.in.
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
>
> We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html
More information about the rt-users
mailing list