Importing and exporting user accounts
The superuser can create many user accounts at once from a CSV file, and can download the user accounts as a CSV file. This page describes the two tools, the format of the file, the options of the import and the content of the exported file.
Where the tools are
Only the superuser can use these tools. They are in the control panel:
Users→All users→Import usersUsers→All users→Export users
The CSV file
- The values are separated by commas. Put a value that contains a comma between double quotes.
- Save the file in the UTF-8 encoding.
- The name of the file ends with
.csv. - Each line of the file holds one account. A file with a single account is accepted.
- The file has at least two columns. The import page shows the reminder "The CSV file needs to contain at least two columns, for username and name.". FileRun refuses a file with one column, in the second step, with "The CSV file should have at least two columns!".
- FileRun reads the line breaks of Windows (CR LF), and those of Linux and macOS (LF). It does not recognize a file whose lines end with a carriage return alone (CR), for example a file in the format "Macintosh Comma Separated" of Excel for Mac. It refuses such a file with "The line breaks of the file were not recognized. Save the file again, in the format "CSV UTF-8".".
- The order of the columns is not important. You choose what each column holds in the second step of the import.
- The first line can hold the names of the columns. When these names are the names of the fields
in the table below, FileRun maps the columns for you. A file made by
Export usershas such a first line. - To put an account in more than one group, write the names of the groups in one column, separated
by semicolons. For example:
Sales;Marketing.
Importing user accounts
Uploading the file
- Go to
Users→All users→Import users. - In the tab
Step 1: Upload CSV File, clickUpload CSV file, and choose the file.
When the upload is complete, the tab Step 2: Map Fields opens.
FileRun keeps the uploaded file on the server until an import adds at least one account. While the
file is there, the first tab shows "An unprocessed CSV file was found on the server.", and you can
go directly to Step 2: Map Fields. A new upload replaces the file.
Mapping the columns
The tab Step 2: Map Fields shows the first 10 records of the file, each with its number. Above
each column, choose the field of the account that the column holds. Choose - for a column that
you do not want to import.
These are the fields that the import reads:
| Field | What the column holds |
|---|---|
username |
The username. Required. |
E-mail and Username |
A value that is both the username and the e-mail address. You can map it in place of username. |
password |
The password. Required, unless you select Automatically generate passwords for the accounts. |
name |
The first name. Required for each record. It cannot contain the characters < and >. |
name2 |
The last name. It cannot contain the characters < and >. |
email |
The e-mail address. It cannot be the address of another account. |
phone |
The phone number. |
company |
The company. |
website |
The website. |
logo_url |
The Logo URL of the account. |
description |
The note about the account. |
language |
The language of the e-mail messages to the user. It must be a language that is available on your installation. |
expiration_date |
The expiration date, in the form YYYY-MM-DD, for example 2026-12-31. FileRun also reads the form that Export users writes, with the time, for example 2026-12-31 00:00:00, and ignores the time. |
activated |
1 for an active account, 0 for a deactivated account. Without this column, the accounts are active. |
require_password_change |
1 when the user has to change the password at the next sign-in. |
require_2fa |
1 when the user has to use the 2-step verification. |
require_email_otp |
1 when the user has to type a code from an e-mail at each sign-in. The account then needs an e-mail address. |
receive_notifications |
1 turns on the e-mail notifications of the account. |
Group names |
The names of the groups of the account, separated by semicolons. FileRun creates the groups that do not exist. It removes the characters < and > from the names. In the first line of the file, the name of this column is group_names. |
The list of fields holds other fields too, such as public_id or last_login_date. The import
does not read them.
The list has no owner field, and FileRun does not map a column with that name. The imported
accounts have no owner, also when the file comes from Export users, which has an owner column.
When the first line of the file holds both username and email, FileRun maps the username
column to username, and the email column to E-mail and Username. The username then comes from
the username column, and the e-mail address from the email column.
The options
The tab Step 2: Map Fields also has these options. They apply to every imported account.
Assign a role to the users: every imported account gets this role, and the permissions of the role. A role is required. With- Please select -, the first item of the list, the import does not start, and FileRun shows "You need to select a role for the new users!". See Roles.Add the users to groups: every imported account becomes a member of these groups. FileRun also adds each account to the groups of theGroup namescolumn.Start with record number: the first record that FileRun imports. FileRun skips the records before it. The default is2. The help text of the field is "Set this to 2, if your CSV file has a header line.". Set it to1when the file has no line with the names of the columns.Passwords are in clear text: select it when thepasswordcolumn holds the passwords as the users type them. FileRun then stores a hash of each password. Without this option, FileRun stores the values of the column as they are, as password hashes. See Passwords.Automatically generate passwords for the accounts: FileRun creates a random password for each account. Thepasswordcolumn is then not needed, and FileRun does not read it.Require user to change the password: every imported account has to change the password at the next sign-in.Send a notification now: FileRun sends an e-mail message with the sign-in details to each imported account. See The e-mail to the imported users.
The import has no option for the home folder. The home folder of each account comes from the role.
When the Home folder section of the role has a Path template, FileRun builds the home folder of
each account from it, and creates the folder when it does not exist. When the role has no path
template, the imported accounts have no home folder. See Home folders.
With the Guest role, the imported accounts are guest accounts. Each record then needs an e-mail address. See Guest accounts.
Passwords
There are three ways to give the imported accounts their passwords:
- The
passwordcolumn holds the passwords in clear text. SelectPasswords are in clear text. - The
passwordcolumn holds password hashes. LeavePasswords are in clear textcleared. For example, FileRun accepts bcrypt hashes and Argon2 hashes. FileRun also accepts the hashes in a file made byExport users. The users then sign in with the passwords that they already use. - FileRun creates the passwords. Select
Automatically generate passwords for the accounts.
Warning
When the
passwordcolumn holds passwords in clear text, selectPasswords are in clear text. Otherwise, FileRun stores each password as if it were a hash, and the users cannot sign in.
The password policy does not apply to the imported passwords.
Running the import
- Click
Import Users, in the toolbar of the tabStep 2: Map Fields. - The tab
Step 3: Import Usersopens, and shows the result.
The result has one line for each record of the file. Each line starts with the number of the record,
the number that the tab Step 2: Map Fields shows. FileRun writes each line as soon as it has
processed the record, so the result of a long import fills in while the import runs.
- The line of an added account holds its username and "User successfully created.". When something failed after FileRun created the account, the line says so too. For example, "The e-mail with the sign-in details could not be sent!", or "Failed to add John Smith to the Sales group!".
- When FileRun generated the password of an account, or when the password was in clear text, the line of the account also shows the password.
- The line of a refused record holds its username, when the record has one, and every reason of the refusal.
- The records before
Start with record numberhave the line "Skipped".
Important
Copy the generated passwords from the tab
Step 3: Import Users. FileRun does not show them again. Only the e-mail ofSend a notification nowalso holds them.
Before the import starts, FileRun checks the mapping. FileRun does not start the import in these cases:
- No column is mapped to
usernameor toE-mail and Username. The message is "You need to map a column for the username!". - No column is mapped to
password, and the passwords are not generated. The message is "You need to map a column for the password, or to enable the automatic generation of passwords!". - No column is mapped to
name. The message is "You need to map a column for the name!". A column mapped toname2alone is not enough, because each record needs a first name.
FileRun then imports each record on its own. FileRun refuses a record, and continues with the next record, in these cases:
- The username is empty. The message is "The username is missing!".
- The first name is empty. The message is "The name is missing!".
- The username has a character that is not allowed in a username. The line names the character.
- The password is empty. The message is "The password is missing!".
- Another account already has the username.
- Another account already has the e-mail address. The message is "The e-mail address is already used by another user account!".
- The first name or the last name contains
<or>. The message is "A name cannot contain the characters "<" and ">".". - The expiration date has another form than the two forms above. The message shows the value, for example "The expiration date "31/12/2026" is not valid.".
- Another check of the account fails. For example, a guest account has no e-mail address, or the language is not available.
- Your license allows no more user accounts. The message is "You cannot create user accounts anymore, the limit was reached!".
To import the records that FileRun refused, correct them, and import the file again. FileRun then refuses the records of the accounts that it added the first time, because their usernames are in use.
After an import that added at least one account, FileRun deletes the uploaded file from the server.
Each added account gets the entry "User added" in the activity log.
The e-mail to the imported users
With Send a notification now, FileRun sends an e-mail to each imported account that has an
e-mail address. FileRun sends the e-mail during the import.
The e-mail is in the language of the account. The e-mail contains:
- the subject "Account information"
- a greeting with the first name of the user
- the sentence "Thank you for signing up!"
- the username
- the password, when FileRun generated it, or when it was in clear text
- the words "the password you already use" in place of the password, when the file held password hashes
- for an account that is not active, a note that the account might not be active yet
- the
Application titleof your installation, fromInterface→Branding, and a link to the installation
When the mail server refuses the message, FileRun still adds the account. The result then shows "The e-mail with the sign-in details could not be sent!".
Exporting user accounts
- Go to
Users→All users→Export users. - Click
Export.
The browser downloads a CSV file. The name of the file holds the date and the version of FileRun,
for example Users_11-11-26_[2026.4.0].csv. The date is in the order day, month, year.
The content of the file:
- The first line holds the names of the fields.
- Each other line holds one account: the fields that describe the account, such as the username, the name and the e-mail address, and the hash of the password.
- The last field,
group_names, holds the names of the groups of the account, separated by semicolons.
The file holds these accounts:
- the superuser account
- the regular user accounts
- the guest accounts
- the deactivated accounts too
The file does not hold these accounts:
- the visitor account
- the System account
- the deleted accounts
The file does not hold the permissions, the role or the home folder of an account. It does not hold the secret key of the authenticator app of an account, or the one-time codes of its 2-step verification, either.
Warning
The file holds the password hashes of the accounts. Keep the file in a safe place, and delete it when you no longer need it.
The activity log gets the entry "Users exported", with the name of the file and the number of accounts. When the export fails, the entry is "Failed to export users".
Moving user accounts to another installation
- On the first installation, export the accounts.
- On the second installation, upload the file in
Import users. - Leave
Start with record numberat2, because the first line holds the names of the fields. - Check the mapping. FileRun maps the columns by their names.
- Choose the role. The accounts get the permissions of the role, and their home folders come from the role.
- Leave
Passwords are in clear textcleared. The users then sign in with the passwords that they already use. - Click
Import Users.
What the import does not carry from the first installation:
- The role, the permissions and the home folder of each account. Every imported account gets the role that you choose. A guest account of the file becomes a regular account, unless you choose the Guest role.
- The authenticator apps and the passkeys of the users. The users who used them for the 2-step verification have to set them up again.
- The IDs of the accounts. The imported accounts get new IDs.
- The owner of each account. The imported accounts have no owner.
- The files, the shares and the shared links.
FileRun refuses each record whose username is already in use on the second installation. For example, FileRun refuses the record of the superuser of the first installation, when the second installation has an account with the same username.