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

# Using the filtering UI

## Overview

After setting up Kombo's [data filtering](https://docs.kombo.dev/hris/features/filtering/introduction.md) for a connection, all endpoints that handle employee-related data will only return data related to your selected subset. For example, if you choose only to include employees with a work location in Berlin, reading absences will only include the absence data of Berlin-based employees.

## Accessing the filtering UI

There are multiple ways of accessing the filtering UI

### When creating an integration in the dashboard

Create an integration on the integrations page.

![1376](https://mintcdn.com/kombo/gOJSp7BFh1-OoJE6/images/hris-implementation-guide/create-integration.png?fit=max\&auto=format\&n=gOJSp7BFh1-OoJE6\&q=85\&s=d531912b504fdc0a9170b7a80b0095fd)

In the integration settings, enable the filtering toggle.

![1376](https://mintcdn.com/kombo/gOJSp7BFh1-OoJE6/images/hris-implementation-guide/enable-filtering.png?fit=max\&auto=format\&n=gOJSp7BFh1-OoJE6\&q=85\&s=869242b2aa45df02ccfcc667dabef7a1)

### When creating a connection link via API

In the [create-link](https://docs.kombo.dev/hris/v1/post-connect-create-link.md) endpoint, make sure to include the `enable_filtering` property in the body.

```bash theme={null}
curl --request POST \
  --url https://api.kombo.dev/v1/connect/create-link \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "end_user_email": "test@example.com",
  "end_user_organization_name": "Test Inc.",
  "enable_filtering": true
}'
```

### Implementing filtering retroactively

If you have already created an integration with a customer or would prefer to separate the filtering step from the connection flow, we allow you to set up a filter in retrospect.

Click on the integration on the integrations page.

![1376](https://mintcdn.com/kombo/gOJSp7BFh1-OoJE6/images/hris-implementation-guide/open-integration.png?fit=max\&auto=format\&n=gOJSp7BFh1-OoJE6\&q=85\&s=9e9947a028223184074e028f38858f7f)

Enter the integration's settings, and press on **configure filters**.

![1376](https://mintcdn.com/kombo/gOJSp7BFh1-OoJE6/images/hris-implementation-guide/get-filtering-link-settings.png?fit=max\&auto=format\&n=gOJSp7BFh1-OoJE6\&q=85\&s=7f65fa9d1e04934e065ca8aa2d3314ff)

This will provide a link that you can share with a customer, or open yourself, to configure the filter.

![1376](https://mintcdn.com/kombo/gOJSp7BFh1-OoJE6/images/hris-implementation-guide/get-filtering-link.png?fit=max\&auto=format\&n=gOJSp7BFh1-OoJE6\&q=85\&s=aa95f4cffbfedb75446585afcd06367c)

Alternatively, you can also use the [Create provisioning setup link endpoint](https://docs.kombo.dev/hris/v1/post-provisioning-groups-group-id-setup-links.md) to get the same link via API, as shown below. The group ID references the provisioning group; currently only the string `"default"` is supported.

```bash theme={null}
curl --request POST \
  --url https://api.kombo.dev/v1/hris/provisioning-groups/{group_id}/setup-links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Integration-Id: <x-integration-id>' \
  --data '{
  "language": "en"
}'
```

## Specifying the filter

Once either your customer or you open the filtering UI, you simply have to select which employee properties should be filtered. For example, selecting **Employment status -> Active** will make the following syncs only include data related to active employees.

Selecting multiple values for the same fields filters with an **or** relationship, while different fields filter with an **and** relation.

For example, selecting **Berlin** and **Amsterdam** for `location`, and **active** for `employment_status`, will include all employees that are currently actively employed, **and** work in either Berlin **or** Amsterdam.

![Filtering UI to share with customers so they can share which employees they want to share with you](https://mintcdn.com/kombo/wgjPsGjJZE2PEhQP/images/filtering_feature_filtering_ui.gif?s=87678d4d76cbfe1a3a9e04ceb471a585)

Confirm your selection by clicking on the **Share employees** button at the bottom of the filtering UI.

We also provide documentation on how we handle [data deletion](https://docs.kombo.dev/hris/features/filtering/data-policy.md) when filtering.


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