[rt-users] Scripted user creation

Paulo Matos pjsm at fct.unl.pt
Thu Apr 1 08:34:03 EST 2004

On Wed, 31 Mar 2004, Jeremy Baumgartner wrote:

> Given:
>  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.
This is mostly done (not all) by 'rt-setup-database'

rt-setup-database --insert --datafile /path/to/datafile

'datafile' should be like 'initialdatafile', look at @Users definition.

Look at the 'rt-setup-database' code...

	Paulo Matos
 ----------------------------------- ----------------------------------
|Sys & Net Admin                    | Serviço de Informática           |
|Faculdade de Ciências e Tecnologia | Tel: +351-21-2948596             |
|Universidade Nova de Lisboa        | Fax: +351-21-2948548             |
|P-2829-516 Caparica                | e-Mail: pjsm at fct.unl.pt          |
 ----------------------------------- ----------------------------------

More information about the rt-users mailing list