> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.spreadly.app/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Sync Employees from Personio

Connect Personio to Spreadly to create a Spreadly user for each employee in Personio. Spreadly keeps the users up to date every 3 hours. You can also limit the sync to specific departments.

|| You need admin rights in Personio and a Personio plan with API access.

## Create API credentials in Personio

1. In Personio, go to **Settings** → **Integrations** → **API credentials**.
2. Click **Generate new credential**.
3. Enter a name, for example "Spreadly", and select **Other** as the integration.
4. Under **Employees**, select **Read**. Spreadly does not need write access.
5. In **Readable employee attributes**, select at least **First name**, **Last name**, **Email** and **Status**. To sync more, also select **Position**, **Department**, **Subcompany** and any other attribute you want on the business cards, such as phone numbers.
6. Click **Generate new credential**.
7. Copy the **Client ID** and the **Client Secret**. Personio shows the secret only once.

## Connect Personio in Spreadly

1. Go to **Team** → **HR Integrations**.
2. Search for **Personio** in **Search integrations**.
3. Click **Connect** on the Personio card.
4. Paste the **Client ID** and the **Client secret**.
5. Click **Save**.

Spreadly checks the credentials right away. If Personio does not accept them, or Spreadly cannot read an attribute it needs, you see what to change in Personio.

### Which employees are synced

- Employees with the status active or on leave are synced.
- New employees are synced once they are active in Personio, not while they are onboarding.
- Employees who leave are removed from your team in Spreadly.
- First name, last name, job title, department and organization are filled from Personio.

### Only sync specific departments

This step is optional. If you leave the department selection empty, Spreadly syncs all employees.

1. Click **Manage** on the Personio card.
2. Open **Only import employees from the selected departments**.
3. Select each department you want to sync.
4. Click **Save**.

Each selected department is also created as a group in Spreadly. If no departments are listed, allow the **Department** attribute in your Personio API credentials.

### Sync phone numbers and other fields

This step is optional. Personio has no standard field for phone numbers, so most companies keep them in attributes of their own.

1. Click **Manage** on the Personio card.
2. Under **Field mapping**, select the Personio attribute for each field you want to fill, for example **Phone** and **Mobile**.
3. Click **Save**.

Only the attributes your API credentials can read are listed. Fields set to **Not imported** stay empty and show the default value of your team, if you set one.

### Run the import

Click **Run your first import** on the Personio page to sync your employees right away. After that, Spreadly syncs them every 3 hours.

### Replace the API credentials

If you create new credentials in Personio, click **Manage** on the Personio card, enter the new **Client ID** and **Client secret**, and click **Save**. Spreadly only saves them once Personio accepts them. If Personio rejects the credentials during a sync, the admins of your team get an email.