Symptom
This KBA document discusses a sample Odata Upsert request to change or reset User Login Password with your preferred value via SFOdata.User Entity
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
SAP Successfactors HXM Suite
- Successfactors OData API
Resolution
To Change or Reset password of an exissting user using SFOdata.User, use below request format with minimum required field/property.
HTTP Method | POST |
URI | https://<api endpoint url See KBA 2215682>/odata/v2/upsert |
Request Payload Body : (raw - JSON format)
{
"__metadata":{
"uri":"User('<insert your userId here>')",
"type":"SFOData.User"
},
"userId":"<insert your userId here>",
"status":"t",
"password":"<insert your NEW password here>"
}
Notice : User status used is 't' which denotes as 'active' user. To know more about this see KBA 2736579. Status values are used to identify the different types of users and their state of activeness in the system.
Sample Postman Request :
See Also
For more sample for User Entity Use Cases Refer to SAP Successfactors HXM Suite Odata API Reference Guide
Keywords
SFOdata.User, Change Password, Reset Password, user upsert , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , Problem