SAP Knowledge Base Article - Public

2830321 - You are not allowed to access OData APIs - SAP SuccessFactors HCM suite

Symptom

You are trying to access the data via APIs and we are getting below error message:

Error Response: [LGN0004]You are not allowed to access OData APIs using Basic Auth or OAuth on a non-API server. To do this, you need to switch to the corresponding API server. For a list of available servers, visit https://help.sap.com/viewer/d599f15995d348a1b45ba5603e2aba9b/latest/en-US/03e1fc3791684367a6a76a614a2916de.html

Environment

SAP SuccessFactors HCM suite - Odata API

Cause

The URL that you using is wrong.

Resolution

Change the API URL, according KBA 2215682

See Also

 About HCM Suite OData APIs

Keywords

LGN0004; You are not allowed to access OData APIs; API server , KBA , LOD-SF-INT , Integrations , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT-API , API & Adhoc API Framework , Problem

Product

SAP SuccessFactors HCM all versions