Bulk User Account Creation


Hey there,

we are looking for a way to create multiple accounts with predefined data. As the console prompts for the inputs separately, it seems not that straight forward. Any suggestions there how to do this?



Hi Markus,

Ideally you should use something like LDAP or another way of authenticating so the accounts are created when they are actually used.
But if you really need to bulk create users you can use indico shell. Have a look at the create_user function (https://github.com/indico/indico/blob/master/indico/modules/users/operations.py#L25) and examples of its usage in the Indico codebase.

Hope this helps.