Import time off and allowances

Overview

Rather than setting each employee's paid time off allowance individually, Kompass lets you import allowances in bulk from a CSV file. This is particularly useful at the start of a new allowance year, when onboarding a group of new starters, or when migrating historical allowance data from another system.


The import creates or updates Allowance records (the entitlement pool from which Kompass calculates each employee's remaining time off). After a successful import, Kompass automatically recalculates the taken and remaining totals for every affected user.

The same Time Off list also imports time off records themselves (booked or past time off), with Actions, then Import. Both imports and their columns are described below.


Before You Start

Who can import allowances?

You need the Import Allowance permission (leave.import_allowance) on your account. If the Import Allowance option does not appear in the Actions menu on the Time Off page, ask your Kompass administrator to add this permission to your group.


What is an allowance?

An allowance is a time off entitlement record. It tells Kompass how many days (or hours) a user is entitled to for a given period. A user may have multiple allowances, for example one for each year, or separate records for different types of paid time off. Each allowance has a start date. For an accrual allowance, Kompass calculates the end date as the day before the next allowance of the same category and type begins, or the employment end date if that comes first. A lump-sum allowance ends on its start date. If there is no later allowance, the end date is the user's employment end date, or the allowance has no end date.


There are two allowance types:

Type Code How it works
Lump one-off L The full entitlement is granted immediately on the start date.
Accrual A The entitlement builds up proportionally over the year. Remaining time off shown in Kompass reflects how much has accrued to date (or to year-end, depending on your organization's configuration).

And two allowance categories:

Category Code
Paid Time Off Allowance A
Sick Leave Allowance S (currently not in operation)

How rows are matched

  • Allowances: a row with an id updates that allowance. Otherwise Kompass looks for an allowance of the same user (user_id or user_email) with the same start date, category and type, and updates it. A row that matches nothing adds a new allowance. On a new allowance, a missing or blank category or type means annual leave and accrual. On an existing allowance, leave those columns out rather than blank: a blank cell cannot clear them. A new allowance needs a user, in user_id or user_email; a row that fills both is refused.
  • Time off: a row with an id updates that record. Otherwise Kompass looks for time off of the same user and type with the same start and end dates. A row that matches nothing adds a new record. A new record needs a user, in user_id or user_email, and a type, in type_id or type_name.
  • After an allowance import, Kompass recalculates the taken and remaining totals of every affected user. After a time off import, it recalculates them for users without an employment end date, so the totals of users who have left are not updated.

For how the Import dialog works, see Import records from a CSV file. Developers using the API can find the same columns in the API reference.

Reading the column tables

Required marks a column a new record needs. A row that updates an existing record only changes the columns in your file, so you can leave the others out. Finds the record marks a column Kompass uses to find the existing record a row updates. Column names must match exactly, including underscores. Where a column only takes certain values, the description lists them. A column marked Needs an extra permission is only accepted from users who have that permission; for anyone else the import reports it as an unknown column. The Download template button in the Import dialog gives you the header row for your own permissions.

Leave allowances

Column Required Finds the record Description
id No Yes Kompass ID of the record to update. When empty, the row adds a new record unless its other columns match an existing one.
category No Yes A for annual leave, S for sick leave. A blank cell uses annual leave for a new allowance. Accepted values: A, S.
days No No Number of days in the allowance, converted to hours with hours_per_day.
hours No No Number of hours in the allowance.
hours_per_day No No Hours in a working day, used to convert days into hours.
notes No No Notes about the allowance.
start Yes Yes First day the allowance applies, such as 2026-01-31.
user_email No Yes Email address of the user the allowance belongs to. Or use user_id.
user_id No Yes Kompass ID of the user the allowance belongs to. Or use user_email.
type No Yes A for an accrual allowance, L for a one-off lump sum. A blank cell uses accrual for a new allowance. Accepted values: A, L.
created_by_email No No Email address of the user who created the allowance. Or use created_by_id.
created_by_id No No Kompass ID of the user who created the allowance. Or use created_by_email.

Leave

Column Required Finds the record Description
id No Yes Kompass ID of the record to update. When empty, the row adds a new record unless its other columns match an existing one.
days No No Number of leave days, converted to hours with hours_per_day.
hours No No Number of leave hours.
hours_per_day No No Hours in a working day, used to convert days into hours.
decided No No Date the leave was approved or denied, such as 2026-01-31.
decided_by_email No No Email address of the user who decided the leave. Or use decided_by_id.
decided_by_id No No Kompass ID of the user who decided the leave. Or use decided_by_email.
decision No No Leave empty for requested, A for approved, D for denied. Accepted values: A, D.
details No No Details about the leave.
end Yes Yes Last day of leave, such as 2026-01-31.
manager_notes No No Notes only managers can see.
start Yes Yes First day of leave, such as 2026-01-31.
type_id No Yes Kompass ID of the leave type. Or use type_name.
type_name No Yes Name of the leave type. Or use type_id.
udf No No Custom field values, such as {"region": "North"}. Leave the column out to keep the current values.
udf_schema_id No No ID of the custom field set to use. Leave empty for the default set.
user_id No Yes Kompass ID of the user the leave belongs to. Or use user_email.
user_email No Yes Email address of the user the leave belongs to. Or use user_id.

How days and hours combine

Kompass stores allowances in hours internally. The total is calculated as:


hours_total = hours + (days × hours_per_day)

If you set days = 25 and hours_per_day = 8, the total is 200 hours. If a user works 7.5-hour days, set hours_per_day = 7.5 to get the correct total (187.5 hours). If hours_per_day is not set in the CSV for a new allowance, the Kompass organization's Time Off configuration value is used. When updating an existing allowance, an omitted value keeps the allowance's stored value.



Example CSV

user_email,category,type,start,days,notes
[email protected],A,A,2025-06-04,25,Standard annual allowance 2025
[email protected],A,A,2025-02-13,28,Enhanced allowance - 5+ years service
[email protected],A,A,2023-01-12,25,Standard annual allowance 2025
[email protected],A,L,2025-01-01,10,Bonus on annual leave

In this example:

  • All three employees receive their paid time off allowance when they join the company.
  • Sara also receives a separate lump-sum time off allowance.
  • Because hours_per_day is omitted, Kompass uses the organization default.


Running the Import

  1. Navigate to Time Off in the main menu.
  2. Click the Actions button (top right of the Time Off list).
  3. Select Import Allowance from the dropdown.

  1. In the import dialog, click Choose a file and select your prepared CSV. Kompass checks the file straight away and shows how many allowances it will create, update and leave unchanged. Nothing is saved yet.
  2. If the counts are what you expect, click Import.

The Import Allowance dialog after the check

  1. If any row has a problem, nothing is imported and Import stays disabled. The dialog lists each problem with its row number, column and reason (for example, an unrecognized email address or a missing required field). Correct the file and choose it again to run a new check.
  2. When the import succeeds, the dialog closes and a confirmation message appears. Kompass recalculates the taken and remaining totals for every affected user. The updated allowance totals appear on each user's Time Off page; reload the page to refresh the figures on individual time off entries.


The dialog works the same way on every list. See Import records from a CSV file for the template download, the column help and how blank cells are read.



After the Import

Where to verify the results

Go to Time Off. The Import Allowance permission does not by itself let you view other employees' time off. Switching to another employee requires the relevant viewing permissions, and seeing that employee's allowance and balances also requires the applicable approval permissions. With those permissions, use the employee selector at the top of the page to switch to a user whose allowance you imported. Their time off list shows the Paid Time Off Allowance total for the relevant year alongside the taken and remaining figures.


If a user's remaining balance looks wrong

The remaining balance is recalculated automatically after each import, but if something looks unexpected, check the following:


  • Multiple allowances for the same year: if the user has more than one paid time off allowance with overlapping periods, Kompass adds them together. This is intentional (some organizations grant a base allowance plus an additional service-based top-up), but double-check that no duplicate rows were imported.
  • Accrual vs lump sum: if type = A (Accrual), the remaining figure shown on the Time Off page reflects how much has accrued up to today (or to year-end if your organization is configured that way). With daily accrual, the allowance total shown on the page is also prorated through today, so it can be less than the full entitlement until the year progresses. The remaining balance on an individual time off entry is the balance through that entry's end date, not a current balance through today.
  • Wrong hours_per_day: if the remaining figure is off by a consistent factor, the hours_per_day used during import may not match the user's actual working day. Re-import the row with the correct hours_per_day value.



Permissions Reference

Permission What it allows
leave.import_allowance Access to the Import Allowance action on the Time Off page
leave.import_leave Access to the separate Import action for time off requests, which is different from allowances

The group editor's Import time off capability grants both actions together. The underlying permissions are separate.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us