SAP Knowledge Base Article - Public

3699960 - When providing a password via OData API to a newly created user in SuccessFactors, it does not work and the user can't login

Symptom

You are using the SAP SuccessFactors Native Login (not using IAS) and creating user accounts through User OData API, providing a predefined password in the Upsert payload.

The Upsert is successful, but the password provided in the API payload doesn't work when the employee attempts to login.

Environment

  • SAP SuccessFactors HCM Suite
    • Native Login
    • OData API

Reproducing the Issue

  1. Create a new user in SuccessFactors using OData API.
  2. Set a predefined password for the user via the API payload.
  3. Attempt to log in using the predefined credentials.
  4. Observe that the login fails, and the user is redirected to the sign-in page.

Cause

The option "Password Expiry for Long-Time Unused Passwords" is enabled in "Password & Login Policy Settings" tool.

The system considers users created with a predefined password via OData API as users who have never logged in and never used their initial password. This results in the policy blocking login attempts for such users.

It will block newly created users' login when all 5 conditions below are true:

  1. The user is newly created.
  2. The user has a predefined password set via API or import.
  3. The user has never logged in before.
  4. The user has not used "Forgot Password?" to reset password.
  5. The "Password Expiry for Long-Time Unused Passwords" policy is enabled.

Resolution

There are two possible solutions:

Option 1

New users can use the "Forgot Password?" button on the login page. They will receive a password reset email, and once they reset the password, they can log in normally.

Option 2

Disable "Password Expiry for Long-Time Unused Passwords" in the "Password & Login Policy Settings" tool.

See Also

3520149 - How customer can log into SuccessFactors

Keywords

OData API, predefined password, login failure, password expiry policy, SuccessFactors, Password & Login Policy settings, user creation, authentication, loginMethod , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-PLT-MNG , Manage user Issues , Problem

Product

SAP SuccessFactors HCM Suite all versions