SAP Knowledge Base Article - Public

2874787 - How to update the Candidate Visibility Option using OData API - Recruiting Management

Symptom

This article will describe the necessary steps to do a mass update in candidate privacy option.

Note: This article provides a simple example. SAP Support team does not help or support this task. If you are unsure on how to execute this OData call, you will need to engage with a SAP Partner or Professional Services.

Environment

SAP SuccessFactors Recruiting Management

Resolution

In order to change the visibility option for a candidate, you will need to manipulate the attribute shareProfile using the entity CandidateLight.

This attribute uses the following codes:

CODEOPTION
0Any Company recruiter in my country/region of residence
1Any company recruiter worldwide
2Only recruiter managing jobs I apply to

Once you define the option that you want to use, replace the code in the payload below and use the candidate ID from the candidate you need to update.

URL: <host>/odata/v2/upsert?$format=json

Payload:

{
"__metadata":
{
"type": "SFOData.CandidateLight",
"uri": "CandidateLight(1111)"
},
"shareProfile": "1"
}

If you need to run this same operation for multiple candidates, you can just concatenate the above payload and provide the candidate id for all the candidates you need to update.

Example:

[

{
"__metadata":
{
"type": "SFOData.CandidateLight",
"uri": "CandidateLight(1111)"
},
"shareProfile": "1"
}

,

{
"__metadata":
{
"type": "SFOData.CandidateLight",
"uri": "CandidateLight(3333)"
},
"shareProfile": "1"
}

]

See Also

2773171 - Change the share flag of the candidate - Recruiting Management

Keywords

change, profile, visibility, options, any recruiter, worldwide, country, recruiters, managing jobs, candidate, privacy options, update, change, recruiting, RCM, ODATA, API , KBA , LOD-SF-RCM-API , Webservices & APIs , LOD-SF-RCM , Recruiting Management , LOD-SF-RCM-INT , Integration Center & Intelligent Services , LOD-SF-RCM-CAN , General Candidate Issues (not Offers, not Profiles) , How To

Product

SAP SuccessFactors Recruiting all versions