> ## Documentation Index
> Fetch the complete documentation index at: https://cal.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Deel out-of-office sync

> Connect Deel and map your out-of-office reasons to Deel time-off types so entries are filed, updated, and canceled as approved time-off requests in Deel.

When Deel is connected, you map each Cal.com out-of-office reason, such as Vacation or Sick leave,
to a Deel time-off type. Cal.com then files entries with a mapped reason as **approved** time-off
requests of that type in Deel. Editing the entry updates the request, and deleting it
cancels the request. People enter their time off once in Cal.com, and HR sees it in Deel.

An admin connects Deel once for the team or organization. Members don't need to connect Deel
themselves: their entries are filed through the team or organization connection.

> [!NOTE]
>
> Sync goes one way, from Cal.com to Deel. Changes made directly in Deel are not copied back into
> Cal.com.

## Who can set it up

The **Integrations** tab on the out-of-office page is shown only to people who have permission to
update a team or an organization, such as team and organization admins. Anyone else doesn't see the
tab.

## Set up Deel out-of-office sync

**1. Open the Integrations tab**

Go to **Settings** > **My Account** > **Out of office** and select the **Integrations** tab.

![The Integrations tab on the Out of office settings page, next to My OOO, Team OOO and Holidays, showing the Deel card with the description Connect your Deel workspace to sync ooo with your time-off policies and an Install button](https://mintcdn.com/calcom/-OdPMH6qzAH3MJcD/images/deel-out-of-office-sync/out-of-office-integrations-tab.png?fit=max\&auto=format\&n=-OdPMH6qzAH3MJcD\&q=85\&s=cf5b81b9db16910903426ded4bb55dee)

**2. Connect Deel**

Click **Install** on the Deel card and authorize Cal.com in Deel, or install Deel from the App
Store on a team or organization account. Cal.com asks Deel for the `time-off:read`,
`time-off:write`, `worker:write`, and `people:read` permissions so it can read your time-off
types, find your members, and file their time off.

**3. Map your reasons to Deel time-off types**

The Integrations tab shows a card for each Deel connection you manage: your own, and one for
each team or organization install. Cal.com pulls in the Deel time-off types the first time the
card opens; click **Sync time off types** to refresh them later. The card lists the Cal.com
reasons (Unspecified, Vacation, Travel, Sick leave, and Public holiday). For each one, pick the
Deel time-off type it's filed as, or leave it **Not mapped**. Several reasons can use the same
type.

**4. Members go out of office as usual**

Members keep picking from the same Cal.com reasons in the **Go Out of Office** dialog. When a
member saves an entry whose reason is mapped on a Deel connection that covers them, Cal.com
files it in Deel as the mapped type. A team or organization connection covers that team's or
organization's members, including members of the organization's sub-teams.

### When more than one connection maps a reason

If a member is covered by several Deel connections that map the same reason, Cal.com uses the
member's own connection first, then a team's, then the organization's. A Deel time-off type that
no longer exists in Deel isn't used.

## How entries are matched to Deel

Cal.com files each request for the Deel person whose **work email** matches the member's Cal.com
email. The comparison ignores letter case and surrounding spaces, and only employments that haven't
ended count. Personal or login emails in Deel are never used.

If no Deel person matches, Cal.com doesn't file a request. The out-of-office entry is still saved in
Cal.com.

## What happens in Deel

| In Cal.com | In Deel |
| - | - |
| Create an entry with a mapped reason | An approved time-off request is filed with the mapped type and the entry's start and end dates |
| Edit the entry's dates, reason, or note | The existing request is updated. If the request was canceled in Deel, a new approved request is filed |
| Change the entry to a reason that isn't mapped | The request is canceled |
| Change the entry to a reason mapped on a different Deel connection | The old request is canceled and a new one is filed through the other connection |
| Delete the entry | The request is canceled |
| Uninstall Deel | Requests for entries that haven't started yet are canceled. Requests for entries already underway or in the past stay approved |

Entries whose reason isn't mapped are never sent to Deel. Uninstalling Deel also stops that
connection's mappings from applying. If you install Deel again and sync its time-off types, the
mappings apply again.

Edits and deletes made through the [API v2](https://cal.com/docs/api-reference/v2/introduction.md) out-of-office
endpoints are sent to Deel the same way.

### Notes are included in the request

The entry's note is added to the Deel request description, with surrounding spaces trimmed, even
when **Show note on public booking page** is turned off. That option only controls whether the note
appears on the public booking page. An entry with no note, or a note that is only spaces, gets a
request with no description.

### When a member leaves the team or organization

If a member is no longer in the team or organization that owns the Deel connection, editing or
deleting their old entries leaves that connection's Deel requests as they are.

## Timing and errors

Cal.com files and updates requests in the background right after the entry is saved, so the request
can take a moment to appear in Deel. When Deel is rate-limiting or has a temporary server error,
Cal.com retries, up to three attempts in total. Retries reuse the same idempotency key, so a
duplicate request in Deel is unlikely.

A Deel error never blocks saving or deleting the out-of-office entry in Cal.com.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.