1. Who this guide is for
This guide explains how to obtain LibraCyber training completions in the format required by the SAP SuccessFactors Learning History Connector, so you can import them directly into your employees' training records.
The import into SAP SuccessFactors is managed by your IT team or your integrator.
Before you start, read Start here: API authentication: there you'll find how to get your credentials and token.
2. What you need before you start
| Item | Who provides it | Notes |
|---|---|---|
| Courses created on SAP SuccessFactors | You | One course for each LibraCyber module included in your package |
| Module-to-course mapping table | You, then configured by LibraCyber | Send LibraCyber the SAP course ID (CPNT_ID) for each module. See the example below |
| API access | LibraCyber | See Start here: API authentication |
| LibraCyber Module | CPNT_ID on SAP |
|---|---|
| Module 1 Phishing | 999 |
| Module 2 Malware | 888 |
| Module 3 Password | 666 |
| ⚠️ |
Modules without a mapping will not be exported. If you add new modules to your package, remember to send the new CPNT_ID as well. |
3. The API call
GET <api_base_url>/sap/success-factors
with the header Authorization: Bearer <access_token>.
| Parameter | Required | Meaning |
|---|---|---|
suffix |
Yes | Your SAP SuccessFactors tenant identifier |
cpnt_typ_id |
Yes | Item type identifier on SAP |
cmpl_stat_id |
Yes | Completion status identifier on SAP |
separator |
No | Column separator in the file (default: comma) |
es_user_name |
No | Value to be reported in the ES_USER_NAME field
|
start_date |
No | Start of the period, format MON-DD-YYYY (e.g. Mar-01-2026). If not provided, from the beginning |
end_date |
No | End of the period, format MON-DD-YYYY. If not provided, up to today |
output_mode |
No |
1 = text file (default), 2 = JSON |
4. What you receive
With output_mode=1 you receive the file learninghistory_data_<suffix>.txt, ready to be imported by the Learning History Connector. With output_mode=2 you receive the same data in JSON format. The file contains all mandatory SAP fields and any optional fields for which LibraCyber has data.
| Field | Type | For SAP | Meaning |
|---|---|---|---|
STUD_ID |
Varchar (90) | Required | User's username in LibraCyber |
CPNT_TYP_ID |
Varchar (90) | Required | Value of the cpnt_typ_id parameter
|
CPNT_ID |
Varchar (90) | Required | SAP course identifier, from the mapping table |
CMPL_STAT_ID |
Varchar (90) | Required | Value of the cmpl_stat_id parameter
|
COMPL_DTE |
DateTime | Required | Completion date and time (MON-DD-YYYY HH24:MI:SS) |
COMPL_DTE_TIMEZIONE |
Varchar (90) | Optional | Time zone (currently empty) |
GRADE |
Varchar (90) | Optional | Points earned by the user on the module |
ES_USER_NAME |
Varchar (400) | Optional | Value of the es_user_name parameter
|
{
"status": 200,
"data": [
{
"STUD_ID": "mario.rossi",
"CPNT_TYP_ID": "986",
"CPNT_ID": "MOD_002",
"CMPL_STAT_ID": "992",
"COMPL_DTE": "Mar-16-2026 16:53:59",
"COMPL_DTE_TIMEZIONE": "",
"GRADE": 30,
"ES_USER_NAME": "Mark Twain"
}
]
}
If there are no completions in the period, you will receive {"status": 204, "message": "No data found"}.
5. If something doesn't work
| Code | What it means | What to do |
|---|---|---|
EXT_1000 |
A parameter is not valid (the message will specify which one) | Correct the parameter |
EXT_1005 |
The course mapping table is not configured | Send LibraCyber the CPNT_ID for the courses |
EXT_1006, EXT_1007
|
The mapping table is not in the correct format | Contact support to check it |
EXT_1002, EXT_1003, EXT_1004
|
Temporary error retrieving data | Try again later; if it persists, contact support |
EXT_1001 |
Token expired or invalid | Request a new token |
If the problem persists, contact support and provide the API call you made, the date and time, and the full error message. We can assist you with testing, first in a test environment and then in production.