[rt-users] API $user->create problems
Krieg, Alexander
alexander.krieg at desy.de
Thu Jan 24 09:29:16 EST 2008
Hi,
i just created a script to add existing users to existing groups, that
works fine.
I also can create queues, groups and set rights for all of them.
But i cannot create a simple user and find him than over the web-gui, i
think it cannot be so hard, but i do not see my mistake.
here the code i use, and i do not get any error messages or warnings.
use lib ("/opt/rt3/local/lib", "/opt/rt3/lib", "/opt/rt3/etc/");
use warnings;
use RT::User;
use RT::Group;
use Getopt::Long;
use RT::Interface::CLI qw(CleanEnv GetCurrentUser GetMessageContent loc);
CleanEnv();
RT::LoadConfig();
RT::Init();
my $user = RT::User->new($RT::SystemUser);
$user->Create(Name => 'foo',
EmailAddress => 'foo.foo at foo.de',
Privileged => 1,
Password => 'foo',
RealName => 'foo test');
i think it should work !?
Cheers,
Alexander
More information about the rt-users
mailing list