[rt-users] Scripted user creation

Stephen Turner sturner at MIT.EDU
Thu Apr 1 11:38:25 EST 2004


Did you try checking the return code & message from the
User->Create step?

my ($val, $msg) = $UserObj->Create(Name => $name,

If the Create is failing, $msg may give you the reason.


At Wednesday 3/31/2004 12:13 PM, Jeremy Baumgartner wrote:
>  A list of users and what groups they should be in.
>We want:
>  Automatic creation/disabling of RT users according to the list of users
>  Automatic addition/deletion of users from groups according to lists
>I've written a perl script to handle all the work of doing this, so we
>can run it every so often to generate accounts for new hires and disable
>for those leaving.  I'm using code from the script pointed to in the
>wiki: http://www.bestpractical.com/pub/rt/contrib/3.0/Other/rtadduser
>Unfortunately, it does not work.  I recieve no errors, but nothing is
>changed in RT.  No users are created, and no users are disabled.

More information about the rt-users mailing list