FI Finnish
SE Swedish
FR French
PL Polish
DE German
US English (US)

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

English (US)
FI Finnish
SE Swedish
FR French
PL Polish
DE German
US English (US)
  • Log in
  • Home
  • Identity Governance and Administration (IGA)
  • IGA solution library
  • Instructions & guidelines
  • Configure connectors

Personio HR Connector

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Service Management
    Matrix42 Professional Solution Matrix42 Core Solution Enterprise Service Management Matrix42 Neo for Pro
  • Identity Governance and Administration (IGA)
    IGA solution library
  • Platform
    ESM ESS2 ESS Integrations Add-ons
  • Release Notes for M42 Professional, IGA, Conversational AI
    26.2 2026.1 2025.3 2025.2 2025.1 2024.2 2024.1 2023.4 2023.3 2023.2 2023.1 2022.4 2022.3 Release Information and Policies
  • Other Material
    Terms & Documentation Guidelines Accessibility Statements
  • Services
+ More
    • Service Management

    • Identity Governance and Administration (IGA)

    • Platform

    • Release Notes for M42 Professional, IGA, Conversational AI

    • Other Material

    • Services

    • Modernized User Experience with Agent UI

Personio HR Connector

Overview

Personio HR integration related capabilities are included in Generic REST API Connector.

Generic REST API connector delivers clear business value across four key areas:

Improved Visibility and Control: Almost real-time access to device and software data enhances IT oversight, asset tracking, and decision-making.

Automation and Efficiency: Automated changes reduce manual work, accelerate response times, and streamline processes like onboarding and updates.

Enhanced Security and Compliance: Rapid detection and remediation of risks support stronger security postures and adherence to regulatory standards.

Strategic Integration and Innovation: Seamless integration with other IT systems enables smarter automation, better governance, and supports digital transformation efforts.

For Generic REST API general guidance see Generic REST API documentation.

Most common use-cases with Personio HR are

  • Reading employee (person) master data from Personio HR into IGA Identity Storage
  • Reading organizational structure data from Personio HR: teams, departments, legal entities, workplaces/locations and cost centers
  • Keeping employment start/end dates, manager assignment, cost center, legal entity, location and organizational unit assignments in sync for IGA lifecycle processes

Configure connector for Personio

Before configuring the connector, generate API credentials (Client ID and Client Secret) in Personio. The credential needs read permissions for every resource this integration reads, for example: Employees/Persons, Employments, and organization data (Teams, Departments, Legal entities, Workplaces/Locations, Cost centers). Permissions needed are case by case, based on customer requirements and by called Personio API endpoints. 

Actual scheduled tasks configurations are also dependent on customer requirements, but examples below can be used as base for discussions with customer.

 

 

Personio API documentation

Personio API documentation

 

 

For configuring provisioning, you will need access to the Platform configuration console.

  1. Open the Administration area (a gear symbol).
  2. Open Connectors view.
  3. Choose "New connector".

  1. Select Data Source type to be Generic REST API.
  2. Give a name for the connector and add connection settings:
Field Value Additional information
Connector name Personio HR (friendly name, can be changed afterwards)  
Host URL https://api.personio.de/v2/  
REST Connector Type Generic  
Authentication method Dynamic Token  
Login URL https://api.personio.de/v2/auth/token  
Login Method POST  
Login Content Type application/x-www-form-urlencoded  
Login Body client_id=<your_client_id>&client_secret=<your_client_secret>&grant_type=client_credentials Replace <your_client_id> and <your_client_secret> with values you got from Personio
Login token valid for (in seconds) 3590  
Login Headers   None required for Personio
Token usage Bearer @TOKEN@  
Token attribute in response access_token  
Pagination Type Link Token  
Pagination Link Token _meta.links.next.href  

 

Replace <your_client_id> and <your_client_secret> in the Login Body with the actual API credentials generated in Personio. Do not reuse the example placeholder values.

Note! It is highly recommended that the connectors login body password is stored to safe place (e.g. to Pleasant) as a separate entry so that the next person can access that information to maintain it if client id or client secret changes.

 

 

  1. Fulfill WebAPI user information:
    • WebAPI user - select the correct WebAPI user which is used when writing data from the external system to Matrix42 Pro and IGA solutions (for example ProvisioningTask).
    • WebAPI password - password for the WebAPI user.
  2. Save connector information.
  3. Add Personio's REST API root https certificate to be trusted by Connector management (EPE). This can be done only by Matrix42, following this guidance: Add certificate.
  4. Matrix42 Pro and IGA solution is now able to connect to Personio.
    • Next step is to configure scheduled tasks to read data from Personio.

Read data from Personio

In this chapter we add example scheduled tasks to read data from Personio. Six scheduled tasks are used in total: five read organizational reference data and one reads employee (person) data together with its employment sub-record. Actual scheduled tasks needed are depending on customer requirements.

  1. Add a Scheduled task under the Personio connector, by clicking "New Task".

  1. Set Task attributes:
    • Scheduling - set scheduling if needed.
    • Task name - set an informative name, for example "Get Teams".
    • Task usage - Scheduled.
    • Mapping type - Generic Template.
  2. Fill in task parameters: Main Query, Sub Queries (if needed), Query headers, Value Marker, Error Marker, Safety threshold for API calls and Unique Attribute. See the Configured scheduled tasks for Personio section below for the exact values used for each of the six tasks.
  3. Fill in failure information (optional). If a scheduled task fails it can create a data card in ESM that displays the error, so the administrator does not need to manually check the status of scheduled tasks.
    • Failure template - select a Template of datacard which will be created in case of any errors during provisioning (connection to data sources, timeouts, etc.)
    • Failure folder - select the folder where the failure data card is stored.
    • Failure attribute - select a text type attribute on the Failure Template where the error information should be stored.
  4. Fill in Generic mappings: Target template, Target folder, Task Id mapping, "Set value to datacard for objects deleted from source system", and the attribute mappings table (External attribute from the Personio JSON response → Local attribute on the Matrix42 Pro and IGA datacard). See supported mapping syntaxes: JSONPath mappings for Generic REST API connector.
  5. Save the provisioning task from the Save button. If some required attributes are missing the Save button is displayed as grey and will show what is missing.
  6. You can now wait until the task starts based on scheduling, or run it manually with the "Run Task" button for a test run.

Recommended run order: the Persons task's employment records reference Teams, Departments, Legal entities, Workplaces/Locations and Cost centers by ID. The first time these tasks run (and whenever scheduling them), run them in this order so the organizational reference data already exists when Persons is imported: Get Teams → Get Legal entities → Get Workplaces/Locations → Get Departments → Get Cost Centers → Get Persons (last).

 

 

Configured scheduled tasks for Personio

All six example tasks use Query Method GET, Request Body {} and Mapping type Generic Template.

1. Get Teams

Personio has both a legacy Teams API and a newer org-units API. Use the v2 org-units endpoint shown below (type=team) – it is the supported version for this connector configuration.

 

 

Field Value Additional information
Main Query org-units?type=team&include_parent_chain=true&limit=100 See limit value possible range from Personio API documentation. Adjust it as needed.
Query headers Beta / true  
Value Marker _data  
Error Marker errors  
Safety threshold for API calls 5000 Set safety threshold based on your expected data amount
Unique Attribute id  
Target Template Organization  
Target Folder Companies/Company teams  
Task Id mapping Datasource ID  
Set value for deleted objects Attribute name: Status – Attribute value: Removed  

 

External attribute Local attribute
id Organization ID
name Name
parent_id Parent organization ID

 

2. Get Legal entities

Field Value Additional information
Main Query legal-entities?limit=100 See limit value possible range from Personio API documentation. Adjust it as needed.
Query headers None  
Value Marker _data  
Error Marker errors  
Safety threshold for API calls 5000 Set safety threshold based on your expected data amount
Unique Attribute id  
Target Template Organization  
Target Folder Companies/Company legal entities  
Task Id mapping Datasource ID  
Set value for deleted objects Attribute name: Status – Attribute value: Removed  

 

External attribute Local attribute
address.city City
address.postal_code Postal code
address.street_name Street address
country Country
id Organization ID
name Name
phone Phone

 

3. Get Workplaces/Locations

Field Value Additional information
Main Query workplaces?limit=100 See limit value possible range from Personio API documentation. Adjust it as needed.
Query headers Beta / true  
Value Marker _data  
Error Marker errors  
Safety threshold for API calls 5000 Set safety threshold based on your expected data amount
Unique Attribute id  
Target Template Location  
Target Folder Locations  
Task Id mapping Datasource ID  
Set value for deleted objects Attribute name: Location Status – Attribute value: Removed  

 

External attribute Local attribute
id Location ID
name Location name

 

4. Get Departments

Field Value Additional information
Main Query org-units?type=department&include_parent_chain=true&limit=100 See limit value possible range from Personio API documentation. Adjust it as needed.
Query headers Beta / true  
Value Marker _data  
Error Marker errors  
Safety threshold for API calls 5000 Set safety threshold based on your expected data amount
Unique Attribute id  
Target Template Organization  
Target Folder Companies/Company departments  
Task Id mapping Datasource ID  
Set value for deleted objects Attribute name: Status – Attribute value: Removed  

 

External attribute Local attribute
id Organization ID
name Name
parent_id Parent organization ID

 

5. Get Cost Centers

Field Value Additional information
Main Query cost-centers?limit=100 See limit value possible range from Personio API documentation. Adjust it as needed.
Query headers Beta / true  
Value Marker _data  
Error Marker errors  
Safety threshold for API calls 5000 Set safety threshold based on your expected data amount
Unique Attribute id  
Target Template Cost center  
Target Folder Cost centers  
Task Id mapping Datasource ID  
Set value for deleted objects Attribute name: Cost Center Status – Attribute value: Removed  

 

External attribute Local attribute
id Cost center ID
name Cost center name

 

6. Get Persons

This is the main employee data task. It uses a Sub Query to fetch each person's employment record(s) in addition to the main Persons query.

Field Value Additional information
Main Query persons?limit=100&status=ACTIVE See limit value possible range from Personio API documentation. Adjust it as needed.
Sub Query 1 name sub_query_employments You can freely set sub query name
Sub Query 1 filter query persons/{id}/employments Some mapping table attributes are fetched from this subquery
Value Marker _data  
Error Marker errors  
Safety threshold for API calls 5000 Set safety threshold based on your expected data amount
Unique Attribute id  
Target Template IGA Work Period  
Target Folder Identity Storage  
Task Id mapping Datasource ID  
Set value for deleted objects Unchecked Not used for this task

 

The main query is filtered to status=ACTIVE so only active employees are imported; this is why "Set value for deleted objects" is not used on this task example. Based on customer requirements you might need to fetch with different status and/or use  “Set value for deleted objects”. 

 

 

External attribute Local attribute
first_name First Name
id objectGUID
id Employee ID
last_name Last Name
persons/{id}/employments.cost_centers.0.id Cost Center ID
persons/{id}/employments.employment_start_date Start Date String
persons/{id}/employments.legal_entity.id Legal entity ID
persons/{id}/employments.office.id Place of work (location) ID
persons/{id}/employments.org_units[*].id Organizational Units Id
persons/{id}/employments.org_units[*].type Organizational Units Type
persons/{id}/employments.position.title Title name
persons/{id}/employments.supervisor.id Managers ID
persons/{id}/employments.termination.termination_date End Date String
preferred_name Preferred Name

Mapping custom attributes

If customer has custom attributes in Personio and should be fetched to IGA, you can use mapping like this. This example fetches global_id, id, type and value -custom attributes from Personio HR.

External attribute Local attribute
custom_attributes[*].global_id Custom attribute 1
custom_attributes[*].id Custom attribute 2
custom_attributes[*].type Custom attribute 3
custom_attributes[*].value Custom attribute 4

For supported mappings with JSONPATH syntax, see JSONPath mappings for Generic REST API connector documentation..

 

 

Guidance for scheduling scheduled tasks

You should schedule tasks in an order that basic organization and teams etc. data is read first, and persons data is read last. That way linking persons to organizations and teams works better.

 

Converting Personio date strings to ESM date format

The Generic REST API connector cannot map a JSON value directly into a Date-type attribute (see Known Restrictions below), so employment_start_date and termination.termination_date are mapped into plain String attributes (Start Date String, End Date String) as shown in the Get Persons mapping above. Personio returns these dates in YYYY-MM-DD format, for example:

2023-12-31

 

To populate the real Date-type attributes on the template, add a Python Expression attribute handler on each Date attribute that reads the corresponding String attribute and sets the Date value from it.

employement_start_date and employement_end_date (note the spelling) are the actual Date-type attribute codes used in this environment. m42custom_employement_start_date_string and m42custom_employement_end_date_string are the attribute codes behind the Start Date String / End Date String attributes populated by the connector mapping.

 

 

Start date string expression (Expression handler on employement_start_date):

_result = m42custom_employement_start_date_string
if m42custom_employement_start_date_string and m42custom_employement_start_date_string != 'null':
  this.set("employement_start_date", m42custom_employement_start_date_string)
  _result = m42custom_employement_start_date_string
else:
  this.set("employement_start_date", None)
  _result = m42custom_employement_start_date_string

 

End date string expression (Expression handler on employement_end_date):

_result = m42custom_employement_end_date_string
if m42custom_employement_end_date_string and m42custom_employement_end_date_string != 'null':
  this.set("employement_end_date", m42custom_employement_end_date_string)
  _result = m42custom_employement_end_date_string
else:
  this.set("employement_end_date", None)
  _result = m42custom_employement_end_date_string

 

Known Restrictions

  • Only GET http method is supported for scheduled tasks (POST, PATCH, DELETE, etc. are not supported).
  • Dynamic url parameters are not supported.
  • Date and DateTime type attributes cannot be mapped directly – map them to a string type attribute instead (see Converting Personio date strings to ESM date format above).
  • Emails and attachments are not supported in attribute mappings.
  • More than one level of subqueries for scheduled tasks is not supported, for performance reasons.

Troubleshooting

  • In case a failure template is used, check failure info from the correct data card.
  • Check scheduled task history from Connector management.
  • Check Matrix42 Native Connectors logs, found from the Connectors tab, Logs section.
  • Check FAQ documents.
unlabeled unnamed

Was this article helpful?

Yes
No
Give feedback about this article

Table of Contents

Related Articles

  • Connector Workflow activities
  • Configure: EPE for reading data from SCIM with Entra
  • Configure: EPE Create data card to target ESM
  • Configure: EPE Delete data card from target ESM
  • Connectors - general functionalities

Copyright 2026 – Matrix42 Professional.

Matrix42 homepage


Knowledge Base Software powered by Helpjuice

0
0
Expand