[rt-users] Batch user add to group
reg.bestpractical at posterus.com
reg.bestpractical at posterus.com
Thu Aug 23 10:44:30 EDT 2012
Giuseppe,
> my $User = RT::User->new($Email);
> *
> #my
($id,$Message)=$User->Create(Name=>$UserName,EmailAddress=>$Email,Privileged
=>1,Password=>'apassword');*
[..]
>Except I don't want to create a user, I want to load a user from the RT
user database. Is that possible? I've been >searching for a couple of days
now without much success...
You should rather do:
my $User = RT::User->new($RT::SystemUser);
$User->LoadByEmail($Email);
printf "%s %s %s\n", $User->Name, $User->EmailAddress, $User->RealName;
Best regards,
Maciek
More information about the rt-users
mailing list