# Import and export users

Create or update lots of user accounts at once from an Excel or CSV file, and download your directory as a spreadsheet.

Source: https://support.rework.com/article/import-and-export-users

Creating accounts one by one works fine for a new hire. It doesn't work when you're moving a whole company onto Rework, or when fifty people change job title after a reorganisation. **Import users** reads a spreadsheet and creates or updates every row in one go, and **Export users** gives you the current directory as a file you can review, edit and import again. Here's how to use both.

> **Note:** You need the **App Admin** role in Rework Account, or the **System Owner** role, to import or export users.

## Step 1: Open the Action menu

- Open the **Account** app and click **Users** in the left sidebar.
  
- At the top right, click **Action**.
  
- Choose **Import users** to bring people in, or **Export users** to download the directory.
  

![The Action menu on the Users page with Export users and Import users](https://storage.googleapis.com/reworkv3-public/success/260923/tOkvow6MWlTNEjytg0349MXltlf1czhVwJGRkAKOSMKVwrsESbxg5P0Ftl8phdTJ/img.cN5nthTWb2i8luL5AeubpJWvJN2h6rc9cfhUNz7CQAe72fVg0SLfQYe86ma2t0Lb.png)

## Import users

### Step 2: Choose what the import does

The **Import users** window opens. An import either creates accounts or updates existing ones, never both in the same run.

1. In **What to do**, choose:
   
   - **Create new users**: every row becomes a new account.
     
   - **Update existing users**: every row changes an account that already exists. See Step 5.
     
2. Set the options:
   
   - **Skip duplicated accounts**: when the same email or username appears on more than one row of the file, the repeats are skipped instead of counted as errors.
     
   - **Email each new user a set-password invite**: sends every new person the same invitation they'd get from [Create a user](https://support.rework.com/article/create-a-user). This option only appears when you create users.
     
   - **Run in the background**: lets you close the window while the import keeps going. Large files always run in the background, whether or not you tick it.
     
3. **Import file**: this is where you get the template and upload your filled-in sheet. See the next two steps.
   

![The Import users window in Create new users mode](https://storage.googleapis.com/reworkv3-public/success/260923/G7b6CaAzMYRtZYLjfQ9NHxlT8w0a9KuncDMviKVCJcHObTtCflXNhd7pVmN9ARu1/img.YYycXEDxTcywbFIo5RmCfir17WwGwXNAnIV23lmwKcoq0OSNrn1CFTqQisf3czYL.png)

### Step 3: Prepare the file

- Click **Download template** to get an Excel file with the right column headers and one example row.
  
- Fill in one row per person. When you create users, each row needs a first name, last name, email and username.
  
- Click **Columns** in the window at any time to see what every column means.
  

![The Columns list expanded in the Import users window](https://storage.googleapis.com/reworkv3-public/success/260923/q9npt0Bf63lgG0rJdwAQynLUhOCI3R7djexSDxO1kPPPzL83hRwVQUvAdc506SgA/img.nKqKK58rFSExvKn1Wj61GG6w90GNI4a343jZDAd7bVybchxG7KkAjTBK5IPd7uuY.png)

| Column | What goes in it |
| --- | --- |
| `id` | The existing user id. Used only when you update users. |
| `username` | The @mention handle: letters, numbers, dash or underscore. |
| `email` | The sign-in address. Must be unique in your workspace. |
| `first_name` | Required when you create users. |
| `last_name` | Required when you create users. |
| `name` | Display name. Leave it blank to use "First Last". |
| `title` | Job title. |
| `dob` | Date of birth, written DD/MM/YYYY. |
| `phone` | Phone number. |
| `address` | Current address. |
| `timezone` | A timezone name such as `Asia/Ho_Chi_Minh` or `Asia/Singapore`. |
| `language` | Interface language code, for example `en`. |
| `role` | `admin` for an Account admin, or `member`. |
| `groups` | User group names, separated by `;`. For example `Sales; Leadership`. |

Columns the importer doesn't recognise are ignored, so you're free to keep your own notes in extra columns.

### Step 4: Upload the file and run the import

- Click **Choose file…** and select your Excel (.xlsx) or CSV file.
  
- Click **Import** to apply it.
  

If you ticked **Run in the background**, or the file is large, you can close the window and the import carries on ☕

### Step 5: Update existing users instead

Updating is the fastest way to change the same detail for many people, such as titles after a reorganisation or timezones for a new office.

1. In **What to do**, choose **Update existing users**.
   
2. In **Match existing users by**, choose how each row finds its account: **Username**, **Email** or **User id**. That column must be filled in on every row.
   
3. Leave any other cell blank to keep its current value. A sheet with only `username` and `title` changes titles and nothing else.
   

![The Import users window in Update existing users mode with Match existing users by](https://storage.googleapis.com/reworkv3-public/success/260923/N1K8ySSFsfYTHdMWCHXwlvLvN5DkLzZdMlXLlmjLGL9iDk8nfX5fPOjEJYOvlBme/img.fSHXRKVA0zsDzffmHgUpfjidxBr0IaVqPqx1b6z0LgDlNsC8YHLJM52DUUzuWMzA.png)

**Example of an update file that moves two people to a new timezone**

| username | timezone |
| --- | --- |
| quinn | Asia/Ho\_Chi\_Minh |
| duke | Asia/Ho\_Chi\_Minh |

> **Note:** The easiest way to build an update file is to start from an export. Export the directory, edit the cells you want to change, delete the rows you don't, and import the file with **Update existing users**.

## Export users

### Step 6: Export the directory

1. Click **Action**, then **Export users**.
   
2. In **Who to include**, choose **Active users**, **Deactivated users** or **Everyone (active + deactivated)**. In **File format**, choose **Excel (.xlsx)**, which keeps the columns typed, or **CSV (.csv)**, which opens anywhere.
   
3. Tick **Prepare in the background** if you'd rather close the window and download the file later. Large exports always run in the background.
   
4. Click **Export**.
   

![The Export users window with Who to include, File format and the Export button](https://storage.googleapis.com/reworkv3-public/success/260923/Ziih36GJzdrZ6fIjbm9EO2qG5VCFXBtWJ3GM0yA5w6m9Uf4vjA0QlGmFwRF7He73/img.9HRAt1xi7PnsSjnf1PcqAqtfg3BZW7I6hNuRbL6GuOuXI8bqOz78kqzeXncDyH6M.png)

The exported file uses the same columns as the import template, plus a few read-only ones such as each person's status and whether the account is locked. That's what lets you edit it and import it again.
