1.2.2.2 Adding Users

To add a user you use the admin.addUser() method of the admin object.

The addUser() method takes the parameters username, password, firstname, surname, email, active and group. Only username and password are required.

Using the admin object created in the example above:

admin.addUser(username='john', password='bananas')

There are a also number of methods to manipulate details of users described later.