Symptom
After setting up the connection of the API user through REST service, the API user is not getting authorized.
The following error is received
{ "status": "UNAUTHORIZED", "message": "The user XXXXXXX is not allowed to call the API.", "errors": [ "Invalid User" ] }
Environment
- SAP successfactors HCM core
- SAP successfactors Time Tracking
Reproducing the Issue
- obtain API key and Private key
- create OAuth token for authorization
- call REST API for create Time events with generated Oauth token
- upon executing, error is received
Cause
Incorrect user
Resolution
At this point in time, only the technical user is allowed for setting this up.
TECHNICAL_USER_CICOTERMINAL_9D3F8AC1
For further details, you can review the below implementation guide
Integrating SAP SuccessFactors Clock In Clock Out with External Time Tracking Services - Integration Overview
Keywords
API, technical, rest, CICO, time, event, events, import, integrate, upload, mass, clock, time, punch, in, out, terminal , KBA , LOD-SF-TTR , Time Tracking , Problem