Creating Kolab users from commandline   September 7th, 2016

I posted a suggestion for this solution a while back: https://lists.kolab.org/pipermail/users/2015-September/019990.html

Now I needed to do it myself, in a multi-domain scenario: creating many user accounts from a list of names.

I used https://cgit.kolab.org/pykolab/tree/pykolab/cli/cmd_add_user.py for inspiration…

This is the code I came up with:

A sample call looks like this:

python createusers.py example.org de_DE "von und zu Berlin" "Heinrich" topsecreat
Tags:
This entry was posted on Wednesday, September 7th, 2016 at 4:10 pm and is filed under Software Development. You can follow any responses to this entry through the RSS 2.0 feed.Both comments and pings are currently closed.

One Response

September 9th, 2016 at 7:55 am
alec Says:

I’m pretty sure you can omit ‘objectclass’. It will be derived from type_id+object_type.