Xledger integration

Save time and increase data quality by connecting to Xledger – a simple way to import and synchronize people between your organization in Huma and your Xledger account

Step 1: Get an API token from Xledger

  1. Log in as administrator
  2. Go to Administration > System Access > GraphQL > Access tokens

  3. Generate a new access token and give the following access

    Human Resources Employee: read/write
    Common Address: read
    Contact: read/write
    Country: read
    Company: read
    Object Value: read
    Subledger: read/write
    Supplier: read/write
    System Value: read
    General ledger Bank: read

    Screenshot 2024-12-16 at 11.41.07
     
  4. Click Generate token
  5. Copy token to clipboard

Step 2: Connect Huma to Xledger

To access Integrations under System settings you'll need a System role with permissions to do Organization-wide settings. Read more here

  • Login to your Huma account as administrator
  • Go to 'Integrations' in the main menu
  • Open 'Xledger'
huma xledger
  • Read through the documentation
  • Click 'Set up' in the upper right corner
  • Paste the created Xledger API token key and check the box to verify you have the proper authority.



  • When adding users in Huma, you can choose if they should automatically be added in Xledger. If you leave this inactive, you need to do a manual sync to add the user in Xledger.
    If you're using the Teamtailor integration, users added to Huma via that integration will also be added to Xledger.

  • Click 'Save' and a connection is now established between the two systems. Now: On to the next step - it's where the magic happens.

Step 3: Activate the integration. Synchronize users and choose how to handle conflicts or missing values

  • After clicking 'Save' you will end up in the Synchronize users step
  • Huma will inform you of any conflicts or inconsistency between Huma and Xledger and you will have to decide how to handle conflicts and/or missing values. You can decide wether or not you want to update Xledger based on values in Huma or the other way around.


  • Huma will inform you of any conflicts or inconsistency between Huma and Xledger and you will have to decide how to handle conflicts and/or missing values. You can decide wether or not you want to update Xledger based on values in Huma or the other way around.



  • Click 'Next' and decide how you want to sync users between Huma and Xledger.


    • If users in Xledger does not exist in Huma, you can add users to Huma
    • If users in Huma does not exist in Xledger, you can add users to Xledger
  • After deciding on the above click 'Syncronize users'
  • Huma will now start synchronizing users with Xledger. You will receive an email confirming the result.

Step 4: Your connection between Huma and Xledger is active 🥳

Any changes made to supported fields in Huma (listed below) will be automatically updated in Xledger in real-time. 

Please be aware that you need to sync users to get the latest changes from Xledger. Changes made in Xledger will not be automatically be updated in Huma. 

How to sync users

If you want to sync users manually you can always click "Sync users"

Please be aware that you need to sync users to get the latest changes from Xledger. Changes made in Xledger will not be automatically be updated in Huma. 

 

When a transfer of data from Huma to Xledger is triggered, the name of the user who created the API token in Xledger, will remain in the history of the change.

Supported fields

Huma field External field
Email address*

employee.contact.email

employee.subledger.email

Huma requires this field’s value to be unique.

Employment ID*

employee.code

Huma requires this field’s value to be unique.

Given name

employee.contact.firstName

employee.subledger.description

Family name

employee.contact.lastName

employee.subledger.description

Phone number

employee.contact.phone

employee.subledger.phone

Huma requires this field’s value to be unique.

Date of birth employee.contact.birthday
Bank account number

employee.subledger.bankAccount

The integration will update this field in Xledger. 

employee.subledger.company.country

The integration can’t update this field’s value in Xledger with the value in Huma.

Address

contact.address.streetAddress

contact.address.zipCode

contact.address.place

contact.address.country.code

subledger.address.streetAddress

subledger.address.zipCode

subledger.address.place

subledger.address.country.code

The integration can’t unset this field’s value in Xledger when the value is unset in Huma.

Gender employee.contact.gender
Job title employee.contact.jobTitle
Employment start date employee.employmentFrom
Probation end date employee.trialTo
Termination notice date employee.noticeDate
Employment end date employee.employmentTo
Identification SSN - social security number  

If you receive "Error parsing query: Unterminated string", it may indicate that one of the supported fields contains a special character that cannot be interpreted.

What happens when a user is deactivated/deleted in Huma? 

  • We synchronize deactivated users to integrations, but since the user is locked for updates when deactivated, this will only occur through manual synchronization.
  • Deleted users in Huma will not be automatically deleted in Xledger.