SAP Knowledge Base Article - Public

3206348 - User authorization error when configuring the API connection through the REST service

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

  1. obtain API key and Private key
  2. create OAuth token for authorization
  3. call  REST API for create Time events with generated Oauth token
  4. 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

Product

SAP SuccessFactors HXM Suite Core 2205