---
title: "Import people from a spreadsheet"
description: "How to upload a CSV or Excel file, match its columns, see every change in the preview, and apply or undo the import."
url: https://help.portierx.com/en/articles/8-import-people-from-a-spreadsheet
collection: "Imports and exports"
updated: 2026-10-22
language: en
alternates: [de, fr]
---

# Import people from a spreadsheet

How to upload a CSV or Excel file, match its columns, see every change in the preview, and apply or undo the import.

Importing people from a spreadsheet adds or updates many people at once: a department, a contractor list, a whole site. It needs the Organisation Admin, Access Manager or Credential Manager role, and it starts from **People** with **Import People**.

## Before you start

You need a CSV file or an Excel file (XLSX) with a header row and one row per person. The shortest route to one is **Download template**, on **People** and in the first step of the import: an empty people sheet with every column the import reads, a Read me sheet explaining each column, and a Lookup sheet listing your organisation's org units, companies and person types. The import always reads the first sheet of a workbook.

A file holds at most 4 MB, 50,000 rows, 200 columns and 1,000,000 filled cells. Split a larger file. A CSV file may use a semicolon, a comma, a tab or a vertical bar between cells, and the file Excel saves as CSV is read as well.

## The columns

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Column</p></th><th colspan="1" rowspan="1"><p>What goes in it</p></th></tr><tr><td colspan="1" rowspan="1"><p>portierX ID</p></td><td colspan="1" rowspan="1"><p>Leave empty. Only portierX's own export fills it, and an export file loaded back is matched on it.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Person ID</p></td><td colspan="1" rowspan="1"><p>Your own ID for the person, as text. The column is headed with your organisation's name for that ID, such as KID. An ID is never given to anyone else, not even after its person has left.</p></td></tr><tr><td colspan="1" rowspan="1"><p>First name</p></td><td colspan="1" rowspan="1"><p>Required for every person the import adds. Up to 100 characters.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Last name</p></td><td colspan="1" rowspan="1"><p>Up to 100 characters.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Email</p></td><td colspan="1" rowspan="1"><p>One address per person. Two people never share one.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Mobile phone</p></td><td colspan="1" rowspan="1"><p>With + and the country code, up to 20 characters.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Person type</p></td><td colspan="1" rowspan="1"><p>One of your organisation's person types. Your own words are matched in step 2.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Status</p></td><td colspan="1" rowspan="1"><p>One of the status words on <a target="_blank" rel="noopener noreferrer nofollow" class="linktype-link link" data-linktype="link" href="https://help.portierx.com/en/articles/98.md">Spreadsheet and file formats</a>. Your own words are matched in step 2.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Start date</p></td><td colspan="1" rowspan="1"><p>A date, the first working day.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Leaving date</p></td><td colspan="1" rowspan="1"><p>A date, the person's last day. portierX takes it as the end date, see <a target="_blank" rel="noopener noreferrer nofollow" class="linktype-link link" data-linktype="link" href="https://help.portierx.com/en/articles/95.md">Person fields and person types</a>. Without a time it counts to the end of that day in your organisation's time zone. Empty while the person stays.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Position</p></td><td colspan="1" rowspan="1"><p>The job title, up to 255 characters.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Org unit ID</p></td><td colspan="1" rowspan="1"><p>Your ID for the unit. This is what matches, through a rename as well.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Org unit</p></td><td colspan="1" rowspan="1"><p>The unit's name. A name that matches no unit creates one when the import is applied.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Manager ID</p></td><td colspan="1" rowspan="1"><p>The manager's ID, in the same kind of ID as the Person ID column. Never a name.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Manager</p></td><td colspan="1" rowspan="1"><p>For reading only. It is never used to find anyone.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Company ID</p></td><td colspan="1" rowspan="1"><p>The company's ID from the Lookup sheet. This is what matches. Leave it empty for your organisation's own people.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Company</p></td><td colspan="1" rowspan="1"><p>The company's name as the Lookup sheet gives it, read when the Company ID is empty. Capitals do not count. A name that matches no company is skipped. Leave it empty for your organisation's own people.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Groups</p></td><td colspan="1" rowspan="1"><p>The groups the person belongs to. The import adds them to each group named and removes them from none. A group portierX fills by itself cannot be set here.</p></td></tr></tbody></table>

Separate several groups with a vertical bar: Night shift | Workshop.

portierX recognises the template's headings on its own, and common names in English, German, French and Dutch. Case, accents, spaces and punctuation make no difference: E-Mail, e\_mail and EMAIL are one heading. A column portierX does not recognise is matched by hand in step 2, or left out. Your own extra columns can stay in the file.

Write dates as YYYY-MM-DD; DD.MM.YYYY and DD/MM/YYYY are read too, day first. A leaving date may carry a time, such as 2026-09-30T17:00. In an Excel file a date cell counts as a date whatever its format. IDs are text: a leading zero stays, and an ID a spreadsheet has turned into a number such as 1.2E+11 is refused.

A blank cell clears that field on an existing person, with three exceptions: a blank first name is skipped, a blank status leaves the status as it is, and a blank groups cell adds no group. A column the file leaves out changes nothing.

## The four steps

1.  Open **People** and choose **Import People**. The **Import people** panel runs in four steps: **Choose a file**, **Match columns**, **Preview** and **Result**.
    
2.  Pick the file with **Choose a file or drag it here**. Under **What should this import do?** choose what happens to people already in portierX. Then **Next: match columns**.
    
3.  Under **Match columns**, check which person field each **File column** is matched to (**Matched to**) and where the match came from (**How**: **Matched automatically**, **Kept from last time**, **You corrected this** or **No match found**). Correct a match in the list; **Not imported** leaves a column out.
    
4.  Under **Match the values in this file**, every person type, status, company and group in the file that portierX cannot match on its own is listed once, with its number of rows. Choose what the value means, or **Skip this value**. A company is matched to a company that exists in portierX. An import never creates a company. Then **Next: preview**.
    
5.  The **Preview** shows what the import would do: the counts **Rows in the file**, **New**, **Updated**, **Unchanged**, **Refused** and **Waiting for you**, then **Decide these first**, **Changes** and **Refused rows**. Up to here nothing is written.
    
6.  Decide the rows under **Decide these first**. Then **Apply**; the button carries the number of changes, and the **Apply this import** dialog sums them up. With nothing to write, **Finish** ends the import.
    
7.  The **Result** reads **Import applied** or **Nothing changed** and counts how many people were added, updated, left unchanged and refused. Use **Download refused rows** here, before you close the panel with **Done**.
    

## What happens to people already in portierX

Under **What should this import do?** you choose one of three settings in the first step.

-   **Add new people only**: rows about people already in portierX are left alone.
    
-   **Add and update**: existing people receive the file's values, except in fields another source keeps.
    
-   **Review before applying**: writes the same as **Add and update** once applied. Every import stops at the preview, whichever setting you choose.
    

**Mirror** belongs to a registered source that delivers full files, such as an HR interface. It is not offered for an uploaded file.

portierX matches a row first by the portierX ID of an export file, then by the Person ID an earlier file recorded on the person, then by the email address. A row that matches by email only is put to you as a proposal.

When a row matches on no ID and no email address, portierX compares the name last. Capitals, hyphens and accents do not count, ä, ö, ü and ß read as ae, oe, ue and ss, only the first given name counts, and the first and last name may be swapped. When only one person in your organisation carries the name, that person is put to you as a proposal. When several carry it, only the one who also shares a detail with the row: the same org unit, the same manager, the same start date, the same mobile number or the same company. portierX never reads a date of birth for this. With no proposal, the row adds a person.

## What the preview asks you to decide

Under **Decide these first** waits every row portierX does not decide on its own. **Apply** stays locked until all of them are decided.

-   **This looks like Sofia Lang**: the row matches a person by email only or by name only, or its ID belonged to someone who left under another name. For a name, the card names the details shared, such as "Same name and org unit as Sofia Lang." The card says what confirming changes on the record. **Yes, this is Sofia Lang** applies the row to that record, and portierX remembers the row's ID for the person. **No, this is not the same person** means the row changes nobody.
    
-   A row that reverses an end date or status someone set in portierX, or ends the person later than set: the two buttons name the date portierX holds and the date in the file; without a date they read **Keep Current Values** and **Use the File’s Values**. Keeping leaves the whole row out, its other changes included.
    
-   **Conflicts**: the file came from the people export, and the person was changed in portierX after the export. The card shows both values; you choose **Keep Current Values** or **Use the File’s Values**. An unresolved conflict is not applied.
    

## Refused rows and skipped values

A row is refused when nothing on it identifies one person safely, when the same ID appears on two rows or the IDs on one row point to different people, when an ID looks changed by a spreadsheet, or when the person's record refused the row as it was applied. Refused rows are listed with their reason under **Refused rows**, in the preview and in the result. **Download refused rows** gives them as an Excel file: the row number, the reason and the row as the file carried it.

A single value is skipped and the rest of its row applies: a value that matches nothing in portierX or more than one record, a manager that would make a loop, a group portierX fills automatically, a value that cannot be read, and an email address that already belongs to someone else. The preview lists them under **Changes** on the **Values skipped** tab, with name, field and value.

Fields the HR file keeps are not written by the import, except an earlier end date and a stricter status. Those fields sit on the **Kept by another source** tab. Which fields the HR file keeps is on [Where people records come from](https://help.portierx.com/en/articles/59.md).

## What happens next

-   Applying runs in the background: org units first, then the people the import adds, then the existing people, then the managers. The result shows what was written.
    
-   Every change is recorded in the person's history and in the audit log, in your name, with the import and the file name.
    
-   A confirmed match by email or by name records the row's ID on the person. The next file recognises the person by it.
    
-   portierX remembers the column matching and the matched values for your next file. They then read **Kept from last time**.
    
-   If another import or an undo changed people since the preview, the preview says so, and **Preview Again** compares the file afresh.
    

## Undo an import

On the **Result** step of the **Import people** panel, **Undo this import** takes back, after a confirmation, what the import wrote. Every value goes back to what it was, as long as nobody changed it since. People the import added are removed when they are unchanged and hold nothing, that is no key, no card and no assignment; anyone who holds something stays, and the result counts them. Org units the import created are removed while they are unused and nobody has moved them; renamed units get their old names back. The step then reads **Import undone**, with the name and the time. A failed import that had already written rows can be taken back the same way.

Undo is offered on the **Result** step, before you close the panel with **Done**. It takes the same role as the import.

## Rules

-   At least one column must identify a person: portierX ID, Person ID or Email. Without one the matching cannot be confirmed; **Fix these to continue** names the reason, as it does when one field is chosen for two columns.
    
-   Only an Organisation Admin sets managers from a file. For the other roles a Manager ID column is not accepted.
    
-   A file you import yourself never changes your own end date, status, org unit, manager or company.
    
-   An import links people to companies that exist and never creates a company.
    
-   An import is finished within 24 hours. After that it ends and its file is deleted.
    
-   Nothing is written before Apply. Closing the panel before that asks **Discard this import?**: **Discard Import** gives up the file and the matching, **Keep Importing** goes back.
    
-   Columns that are not imported are deleted once the matching is confirmed, and after 24 hours at the latest.
    
-   The import issues no access credentials and gives no access to a space. That is separate work afterwards.
    
-   The import adds people to groups and removes nobody from one.
    

## Related

-   [What your role lets you see and do](https://help.portierx.com/en/articles/2.md)
    
-   [Add a person, field by field](https://help.portierx.com/en/articles/5.md)
    
-   [Give a person access](https://help.portierx.com/en/articles/6.md)
    
-   [Provision people from Microsoft Entra ID](https://help.portierx.com/en/articles/12.md)
