SHR (Statens HR)

The SHR integration connects mTime with Statens HR, the Danish government’s central HR system. It syncs employees, employments, organization units, and managers from an XML feed so you don’t have to manage this data manually.

SHR integration detail page
SHR integration detail page

What it syncs

The integration imports the following data from SHR into mTime:

  • Employees — Name, email, and personal details
  • Employments — Job title, start and end dates
  • Organization units — Department structure and hierarchy
  • Managers — Reporting relationships between employees and units

How it works

SHR provides an XML feed that contains your organization’s HR data. mTime fetches this feed at regular intervals and imports any changes. After the initial sync, only changes are applied — employees won’t be duplicated.

Attributes added by SHR

When the integration is active, it adds read-only attributes to synced records. These attributes are managed by SHR and cannot be edited in mTime.

AttributeDescription
HCM IDThe employee’s unique identifier in SHR
SSNSocial security number (CPR)
Payroll numberThe employee’s payroll identifier
Employment numberUnique number for each employment record
Department IDThe organization unit identifier from SHR

These appear in a separate “Integration attributes” section on each record. See Custom attributes for more about how integration attributes work.

Getting started

The SHR integration requires configuration on the mTime side — your feed URL needs to be whitelisted for your workspace.

To get started, contact mTime support and let them know you’d like to connect your SHR feed. They will:

  1. Whitelist your SHR feed URL for your workspace
  2. Set up the integration
  3. Help you run and verify the first sync
Want to try the integration first? Ask support about the built-in test feed, which lets you see how the sync works with sample data before connecting your real SHR feed.

What to expect after the first sync

Once the integration has run for the first time:

  • Employees from the feed are created in mTime — you can find them in OrganizationEmployees
  • Employments are linked to the corresponding employees
  • Organization units are created to match the department structure in OrganizationOrganization Units
  • Manager relationships are set based on the feed data
  • The read-only attributes listed above are populated on each record

Next steps

Once the integration is running, see Integrations for how to check sync status, trigger manual syncs, and troubleshoot issues.