SAP Knowledge Base Article - Public

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


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

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

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


  • SAP SuccessFactors HXM Suite
    • OData API
    • SFAPI

Reproducing the Issue


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


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


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


SAP SuccessFactors HCM suite all versions