SAP Knowledge Base Article - Public

2332261 - en_US gets assigned as the default language to the user when created via SuccessFactors API

Symptom

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

You are creating a new user via SFAPI or OData in the User entity.

You have not provided any default language when creating new user. However the users are being assigned en_US as the language.

Environment

SAP SuccessFactors (INT) - All Supported Versions

Reproducing the Issue

Since you not provided the default language in the request payload when creating a new user via API, the users are being assigned with en_US as their default language.

Find below one example using SFAPI (SOAP). The same is applicable for REST (OData).

rep (1).jpg

Check the UDF (User data file) – You would notice en_US

udf.jpg

Cause

This is the API design behavior.

Resolution

To avoid this, please provide the desired language in the SOAP (SFAPI) or REST (OData) request informing your desired language in the field defaultLocale.

If no default language is specified in the payload, the API is designed to assign en_US.

This is the design behavior.

See Also

This only happens when the user is created via API.

If the User is created via User import (csv), the default language is picked from the provisioning system (backend)

Keywords

defaultLocale, language, default language, API, OData, SFAPI, REST, SOAP, SuccessFactors API, en_US, insert, upsert, User entity, create user / employee, initial language, Locale, DEFAULT_LOCALE , KBA , LOD-SF-INT , Integrations , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT-API , API & Adhoc API Framework , How To

Product

SAP SuccessFactors HCM Suite all versions