SAP Knowledge Base Article - Public

3452776 - "You’re not allowed to access APIs using Basic Authentication or OAuth on this server. Please use the API server instead" error - OData API

Symptom

You are calling a SuccessFactors OData API endpoint/address/URL but the following error is being thrown:

"[LGN0004]You’re not allowed to access APIs using Basic Authentication or OAuth on this server. Please use the API server instead. You can find the API server of your company in https://help.sap.com/viewer/d599f15995d348a1b45ba5603e2aba9b/LATEST/en-US/af2b8d5437494b12be88fe374eba75b6.html."

Environment

SAP SuccessFactors HXM Suite

Cause

As the error suggests, a wrong endpoint/address/URL is being used.

Resolution

  1. Check which data center your SF instance is hosted in;
  2. Filter by this data center in the List of SAP SuccessFactors API Servers chapter and use the API endpoint indicated there;

Keywords

not able, cannot, can't, not allowed, access, APIs, Basic Authentication, OAuth, API server, SuccessFactors, OData, API, endpoint, address, URL, incorrect, wrong, data center, dc , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem

Product

SAP SuccessFactors HCM suite all versions