Batch Shared Account Import and Update

The batch import and update feature allows the administrator to import accounts, and optionally update existing account details by reading data from a simple text file. In addition to being able to create accounts, it enables administrators to update the following account data:

Examples of where the batch user import feature is useful include:

To perform a batch import:

  1. Manually inspect your file in a text editor and ensure it's in the prescribed tab-delimited format as detailed at the section called “Batch Account Import File Format”.

  2. Navigate to the Accounts section.

  3. Click the Batch import ... action (on the left).

  4. Click Browse to select the file to import. (The format of the file is described in the section called “Batch Account Import File Format”).

  5. Choose whether you want the import to create new accounts if they do not already exist. If you clear this checkbox, lines that contain users that do not exist will be ignored and only existing users will be updated.

  6. Press the Import button.

  7. Upon completion you will be told how many accounts were updated and how many accounts were created.

Batch Account Import File Format

The import file is in tab delimited format and contains the following fields in the given order.

FieldDescriptionOptional?

Account Name

The Shared Account Name

Mandatory

Account PIN

The account PIN. The account must be unique.

Optional - PIN not set if blank

Credit Balance

The account balance

Optional - Balance is not set if blank

Restricted Status

The account's restricted status. (Y/N where Y = YES, and N = No)

Optional - restricted status not set if blank

Notes

Notes about the shared account (placed in the Notes field).

Optional - notes not set if blank

Groups

The groups that are allowed to use the account. The list of groups is pipe (|) delimited. To reference the special 'All Users' group, use the syntax !!All Users!!.

Optional - groups are not updated if blank

Users

The usernames of users that are allowed to use the account. The list of users is pipe (|) delimited.

Optional - users are not updated if blank

Table 7.1. Shared Account Import File Format

Tip

A simple way to create a tab delimited file is to create a spreadsheet in Microsoft Excel, and then save it in the Text (Tab delimited) format.

Import File Format Examples

The following lines shows importing all the above fields. (The fields are separated by tabs).

Maths	1234	500	N	A Note	group1|group2|group3	user1|user2|user3
Science	1235	100	N	More notes	group1	user3
                

The following lines show updating only the groups that can access the account. NOTE: That the tabs still exist for the pin, balance, restriction and notes fields, but each entry is blank. pin, restriction, full name fields, but each entry is blank.

Maths					group1|group2|group3
Science					group1