SAP Knowledge Base Article - Public

2223026 - How to override the default password while creating a new user using User entity in successfactors system

Symptom

While creating new users, a password must also be set to the user to log in into the successfactors system.

User entity provides the functionality to override the default password which is the username.

 

Environment

Successfactors BizX, API

Reproducing the Issue

There might be some issues while setting the password in following scenarios:

1. From an On-Premise system to successfactors system using RH_SFI_SYNCH_EMP_DATA report data is being upserted.

2. Any 3rd party system which sends the data to successfactors system through SFAPI entity User.

Resolution

Please check the below requests steps to check how to change the default passwords for User Entities:

1. We can use the inbuilt field password to override the default password.

Example :

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Body>
        <upsert xmlns="urn:sfobject.sfapi.successfactors.com">
           <type>User</type>
           <sfobject>
           <type>User</type>
           <status>active</status>
           <externalId>99831449659</externalId>
           <username>33855</username>
           <firstName>Rocky</firstName>
           <lastName>Example</lastName>
           <gender>M</gender>
           <email>xxx@test.com</email>
           <managerExternalId>NO_MANAGER</managerExternalId>
           <hrExternalId>NO_HR</hrExternalId>
           <department>SVCS</department>
           <jobCode>HR-ALYST</jobCode>
           <division>HC</division>
           <timeZone>America/Sao_Paulo</timeZone>
           <hireDate>2015-09-01</hireDate>
           <empId>24</empId>
           <title>Especialista II de Marketing e Comunic.</title>
           <businessPhone>-</businessPhone>
           <addressLine1>Av. Marechal Camara, 171 Lote 10 Quadra B</addressLine1>
           <addressLine2>Castelo</addressLine2>
           <city>Rio de Janeiro</city>
           <country>US</country>
           <zipCode>20020-901</zipCode>
           <lastReviewDate>2015-09-23</lastReviewDate>
           <defaultLocale>EN_US</defaultLocale>
           <dateOfBirth>1970-01-01</dateOfBirth>
           <dateOfPosition>2015-09-01</dateOfPosition>
           <password>abc124</password>
           </sfobject>
             <processingParam>
               <name>sendWelcomeMessage</name>
               <value>true</value>
             </processingParam>
        </upsert>
    </Body>
</Envelope>

2. We can use the defaultPassword processing parameter and it can be any of the following:

{USERNAME, externalId, EMAIL, FIRSTNAME, LASTNAME,RANDOM_PWD}

Example:

<processingParam>
     <name>defaultPasswordField</name> 
     <value>EXTERNALID</value> 
</processingParam>

This processing parameter creates password as field value passed in <value> tag.
Note : The first method suggested overrides the processing parameters if both are used

See Also

Please check this link for different parameters supported for User API:

http://help.sap.com/saphelpiis_cloud4hr/EN/SuccessFactors_HCM_Suite_SFAPI_Handbook_en/frameset.htm?18a3e7424e8b4ae8ba47c8660380dbb4.html

Keywords

KBA , user entity password override , how to set default password for user , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , How To

Product

SAP SuccessFactors HXM Core all versions