Load your org structure
An org structure is the list of teams in a workspace, how they nest (company, department, team, to any depth), who leads each one, and who belongs to it. Surveys use it to report results by team: see Team reports.
Each workspace has one org structure. If you run surveys for several client organisations, use one workspace per client.
Org structures are part of team reports, available on the Growth plan and above. Workspace owners and admins can load one; they also need permission to import contacts, because the people in the file become contacts.
Prepare the file
Section titled “Prepare the file”Use a CSV file saved as UTF-8, with one row per employee and these columns:
| Column | Required | What it holds |
|---|---|---|
| Employee email | Yes, on rows that are people | The person’s work email |
| Team code | Yes, on every row | Your own ID for the team, up to 64 characters. Re-importing with the same codes updates teams instead of creating new ones |
| Team name | Once per team | The name leaders and reports show |
| Parent code | For teams inside another team | The code of the team above it |
| Leader email | Optional | Who receives the team’s report. Several leaders go in one cell, separated by ; or , |
| First name, Last name | Optional | Added to the contact |
| Employee ID | Optional | The person’s ID in your HR system. With it, a person whose email changes keeps their contact |
| Start date, Leaving date | Optional | Dates as YYYY-MM-DD, for example 2026-03-01 |
| Location, Job title, Employment type | Optional | Saved on the contact |
A row with a team code and no email defines a team with nobody directly in it, such as a department that only contains other teams. A team’s name, parent and leaders can be on any of its rows. Commas, semicolons and tabs all work as separators.
Columns from an HR system’s own export are recognised under their usual names too, such as Work email, Worker ID, Hire date, Termination date and Office. A column the file doesn’t have is left as it is on each contact; an empty cell in a column the file does have clears that value.
Download a template from Workspace Settings → Org Structure → Download a template.
Check and import
Section titled “Check and import”-
Go to Workspace Settings → Org Structure.

-
Choose your file and select Check file. Nothing is saved yet.
-
Read the result. It lists how many teams are new, updated and to be archived, how many people the file holds, and how many people would join and leave the roster list (see Joiners and leavers).

-
Select Import.

Check file refuses a file that has any of these problems, and lists each one with its row number:
- a row without a team code, or an email address that is not valid;
- a team given two different names or two different parents;
- a parent code that is not in the file;
- teams that are each other’s parents;
- a person listed in two teams. Each person belongs to one team.
It also warns, without refusing, about teams with no leader email (nobody can be sent their report) and teams with fewer than 5 people, counting the teams under them. A team below the minimum gets no report of its own, but its answers still count in the team above it and in the company.
It also warns about a department with fewer than 5 people directly in it and teams under it, such as a head on the department’s own row. So those people can’t be worked out by subtraction, the smallest team under it gets no report. To avoid that, put them on a team of at least 5.
The file is the whole structure
Section titled “The file is the whole structure”Each import replaces the structure:
- Teams in the file are created or updated by their code.
- Teams that are not in the file are archived. Surveys already sent keep reporting on them.
- People in the file are added to your contacts, or updated if they are already there, with their team. Unsubscribed and suppressed addresses are skipped, and your plan’s contact limit applies.
- People who had a team but are not in the file are taken off it. They stay in your contacts.
- Everyone in the file whose leaving date has not passed is on the contact list Employees (roster). Anyone else is taken off it, and stays in your contacts.
- With an Employee ID, a person is matched on it before their email, so an email changed in your HR system updates their contact instead of adding a second one.
A person’s team is stored in a contact field called Org unit, which holds the team code. Start date, Leaving date, Location and Employment type are contact fields of the same kind; Job title uses your contacts’ Job Title field.
Joiners and leavers
Section titled “Joiners and leavers”Because the roster list follows the file, a workflow can act on each change. Both use the Contact Event trigger: see Build a workflow.
- When someone joins, use a workflow that starts when a contact is added to the list Employees (roster), with a wait step before it sends your onboarding survey (for example 30 days).
- When someone is leaving, choose the Leaving (roster leaving date) event and how many days before their leaving date it starts (0 is the day itself, up to 30). It starts at 9:00 in your time zone for each person on the list whose leaving date is that close, so an exit survey can reach their work address before their last day. If HR moves the date, it starts again for the new date.
- Removed from list on Employees (roster) starts only for people who have a leaving date.
Only people your HR file or system gives a leaving date count as leavers. Someone who is missing from a file and has no leaving date is taken off the list, so no more surveys sent to it reach them, but no leaver workflow starts for them: it is more often a report filter or a cut-short export than someone leaving. Recent loads says how many people that was, so you can check them on the Contacts screen.
Send pulse and engagement surveys to the list rather than to all contacts, so people who have left are not invited.
Someone who is taken off the list and is back within 14 days is restored, not counted as a new joiner, so they are not sent your onboarding workflow again.
If a file would take 20% or more of the people on the list off it, Check file warns you, because that is usually a report whose filter changed or a file cut short. Importing it anyway is your choice.
After a reorganisation
Section titled “After a reorganisation”Load the new file. Each survey keeps its own copy of the structure, taken when it started reporting by team, so earlier surveys still report on the teams they were sent to. To bring a survey that has not been sent yet up to date, open its settings and select Refresh from org structure.
If most of the team codes in the new file are ones the workspace hasn’t had before, the check step warns you before anything is saved. If the teams were only renumbered, keep their old codes so each team still matches its earlier results. If they really were split or merged, map the new teams to the earlier ones in the team reports: see Teams that were reorganised.
Load it from your own systems
Section titled “Load it from your own systems”To have SurveyRock fetch the roster every day from a Workday report, a file on your SFTP server or a file at an HTTPS address, see Keep your roster in sync.
The same roster can be sent through the API with POST /api/v1/contacts/roster, one object per row with the column names as keys (email, team_code, employee_id, start_date and so on). Send the whole roster each time, for example nightly from a script.
Unlike a file upload, the API refuses a roster that would take 20% or more of the list off it, or that would go over your plan’s contact limit, and writes nothing. To load one that removes that many people on purpose, send it again with confirm_leavers set to the number of leavers the refusal names. dry_run: true checks a roster without saving it.
The token needs the contacts:write scope, and the person who created it must be a workspace owner or admin.
Recent loads on the Org Structure page lists each load from a file or the API, and whether it was loaded, stopped or not valid.