SAP Knowledge Base Article - Public

2161058 - Error in SuccessFactors API: "Attempted login from unauthorized ip"

Symptom

While accessing SuccessFactors instance via API, the following error is returned:

<error>
   <errorCode>FAILED_AUTHENTICATION</errorCode>
   <errorMessage> Authentication failed. Attempted login from unauthorized ip: xxx.xxx.xxx.xxx to company id: xxxx by username: user(status code = 8)</errorMessage>
</error>

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

  • SAP SuccessFactors HXM Suite
    • OData API
    • SFAPI

Reproducing the Issue

Cause

An IP address restriction was configured for the API user and the IP address from the error message was not included in the restriction.

Resolution

You'll have to include the IP address from the error message in the restrictions of the API user.

In order to do that, please follow the steps from KBA 2253200.

See Also

OData API Help Portal: Restricting API Access by IP Addresses or IP Address Ranges

Keywords

FAILED_AUTHENTICATION, Authentication failed, SFAPI, OData, API Login Exceptions, 401, login from this IP address is prohibited, restriction , KBA , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-RCM-API , Webservices & APIs , Problem

Product

SAP SuccessFactors HCM suite all versions