Import from a file
Load units, locations and people's profiles from CSV files, check the preview, and apply the whole file at once.
Who can do this:Org admin
For a large organization, load your units, locations and people's profiles from spreadsheets instead of entering them one by one. Swarmix shows a preview first, and your data stays as it is until you import.
Before you start
You need the organization admin role, in the Swarmix web dashboard. Add your levels on the Structure tab first, as described in Organization chart. People must already be members of the organization.
Prepare the files
Each file holds one kind of data, as CSV. Click Download a template for an example of each.
| Kind | Columns |
|---|---|
| Units | name, type (a level, below the parent's level), parent (a unit's external id, or a name only one unit has), external_id (optional) |
| Locations | name, kind (office, site or remote), country (two letters), region, external_id (optional) |
| People | email (a member), units (separated by ;, the first one primary), location, tags (key=value; key=value) |
A file has at most 5,000 rows and 512 KB. Import units first, then locations, then people.
Import a file
- In the web dashboard, open Organization, then the Import tab.
- Choose the kind: Units, Locations or People.
- Choose the CSV file.
- Click Preview. Swarmix lists the rows it would add or change, or the errors it found.
- Fix any errors in the file and preview again.
- Click Import.
Import stays off until a preview has no errors. Swarmix applies the whole file at once. Swarmix refuses a file with any error, and none of its rows apply.
How rows match what exists
- Units: a row updates the unit with the same external id, else the unit with the same name under the same parent, else creates a unit. A parent can come later in the file.
- Locations: a row updates the location with the same external id, else the one with the same name.
- People: a row replaces that member's whole profile. Members not in the file keep theirs. A people file creates no units, locations or tag keys, so each one it names must exist.
An import can't change the units and tags your identity provider fills. See People's profiles.
Best practices
- Export external ids from your HR system into the
external_idcolumn. Later imports then update the same units and locations instead of creating new ones. - Preview after each change to the file. The preview lists each error by row and column.
- Keep a copy of each file you import. A people file replaces the profile of each person it lists.
FAQ
The file had at least one error. Preview it, fix the rows it names, and import again.
Save the sheet as CSV first. The import reads CSV files only.
A people file changes profiles only. Members not in the file keep their profiles and their membership.