[rt-devel] importing just users/queues/scrips - how ?

matthew zeier mrz at intelenet.net
Mon Mar 3 17:50:47 EST 2003


I've been messing with the conversion tool today, trying to only export and
import users, groups, queues and scrips.  Specifically with users, I only
want to keep non-Autocreated accounts.

Around line 106 I have:

    if ($user_ds->{'Comments'} eq "Autocreated on ticket submission") {
         print STDERR "skipping $user_ds->{'EmailAddress'}\n";

    } else {
         push (@{$ds->{'User'}},$user_ds);
    }

And I commented out Links and put an exit() before the ticket exporter.
Import fails with the following:


[Mon Mar  3 22:41:31 2003] [crit]: Couldn't load principal  to grant them
SuperUser globally
$VAR1 = {
          'PrincipalType' => 'User',
          'PrincipalId' => '1',
          'Name' => 'SuperUser'
        };
 (/opt/rt3/lib/RT.pm:226)


What dependency did I miss?

metadata only has Scrip, Right, Group, and User.

--
matthew zeier                        | "Nothing in life is to be feared.
InteleNet Communications, Inc.       |  It is only to be understood."
(949) 784-7904                       |       - Marie Curie




More information about the Rt-devel mailing list