setIcon("MagicWand.svg"); $CancelButton = new HtmlButton("Cancel"); $CancelButton->setIcon("Cross.svg"); $CancelButton->addSemanticClass("btn-danger"); # ----- DISPLAY -------------------------------------------------------------- $AF->setPageTitle("Import Users"); ?>

# Import Users

Important: Importing users into the database should be handled by a knowledgeable and skilled staff member. Please carefully read the instructions below.

The required format for import is a file containing tab separated fields with each record terminated by a newline character (\n). Any line containing a newline character (\n) within any field will cause the import to be terminated on that record.

1. Below is the format that is required for import. If `UserPassword` is left blank, it will default to `UserName`. Users should be instructed to change their password after they login.
2. The fields must be in the following order:
   - `UserName` (required)
   - `UserPassword`
   - `Email` (required)
   - `Website`
   - `RealName`
   - `Address1`
   - `Address2`
   - `City`
   - `State`
   - `Country`
   - `Zipcode`
   - `ActiveUI` (e.g., `default`)
   - `DefaultBrowsingField` (e.g., `Classification`, `Subject`, etc.)
   - `UserAccessPrivilege` (e.g., `System Administrator`, `Classification Administrator`, etc)
3. There should be one line for each User Access Privilege assigned to the user. The `UserName` field must be filled in, but the other fields may be left blank, provided the tab characters remain. The file should end with an empty line.
4. If the `UserPassword` column contains hashed passwords (e.g., in a file exported from another site), select the "Hashed" password format. Otherwise select "Plain Text".
5. Use the "Browse..." button below to locate your local file for import and then upload it with the "Upload" button.
6. Initiate import by clicking on the "Begin Import" button.

DisplayFormTable(); ?> getHtml(); ?> getHtml(); ?>