Errors during Connection Setup

Symptom: The endpoint check fails with the error "Server returned unexpected status code: HTTP/1.1 401 Unauthorized" despite entering the correct password. You can log on to SAP SuccessFactors with this user and password. You are also using an IAS (Identity Authentication Service) for the authentication.

Reason: The SAP SuccessFactors API URL doesn't use the IAS for authentication. Instead, whatever password is set for the user in SAP SuccessFactors itself is the one the API URL expects. You can verify this the following way:

  1. Try to log on to the OData endpoint for the API URL for your data center, e.g. https://apisalesdemo8.successfactors.com/odata/v2
  2. Enter the username@<Company ID> and password you want to use
  3. You get the error: "[LGN0015]Authentication failed. You have entered an incorrect username or password (status code = 4)."

Solution:

You have to make sure that the correct password is set in the SAP SuccessFactors Admin Center > Tools > Reset User Passwords 

  1. Log on to SAP SuccessFactors
  2. Go to Admin Center > Tools > Reset User Passwords
  3. Find the SFAPI user you want to use
  4. Reset the password to the password you want to use
  5. Click "Reset User Password"
  6. Try again to log on to the API URL
  7. You should now get an XML file as response