SAP Knowledge Base Article - Public

2852291 - Able to retrieve deleted photo via Odata API, Photo Entity

Symptom

  • Sample user 'Aanya Singh' recently deleted her profile photo in SF UI.
  • When querying the profile photo via Odata API, it is still retrievable.”

"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 HCM Suite

Reproducing the Issue

1. Sample user 'Aanya Singh' has a profile picture in SF UI

photoKBAblur.png

2. Did a query and as expected, photos were retrievable.

Sample req payload:

GET https://enterAPIendpointURL.successfactors.com:443/odata/v2/Photo(photoType=26,userId='xxxx')?&$select=photo

responseKBA1.PNG

3. Removed the photo in SF UI, by going to Employee Files > Header > Delete Picture > Click save. There's no photo in UI now.

deletedphotoKBA.png

4. Ran same request payload, photo is still retrievable.

responseKBA1.PNG

Cause

Photo is still in the backend.

Resolution

Engineering team have created a fix for this issue that will be deployed in 1911.

Preview Release: 8-Nov-19

Production Release: 6-Dec-19

See Also

2317289 - How to query the SF Odata Photo entity and retrieve the image

2755101 - How to upsert or insert profile photo - SuccessFactors OData API

Keywords

Deleted photo, Photo entity , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM Suite 1511 ; SAP SuccessFactors HCM Suite 1602 ; SAP SuccessFactors HCM Suite 1605 ; SAP SuccessFactors HCM Suite 1608 ; SAP SuccessFactors HCM Suite 1611 ; SAP SuccessFactors HCM Suite 1702 ; SAP SuccessFactors HCM Suite 1705 ; SAP SuccessFactors HCM Suite 1708 ; SAP SuccessFactors HCM Suite 1711 ; SAP SuccessFactors HCM Suite 1802 ; SAP SuccessFactors HCM Suite 1805 ; SAP SuccessFactors HCM Suite 1808 ; SAP SuccessFactors HCM Suite 1811 ; SAP SuccessFactors HCM Suite 1902 ; SAP SuccessFactors HCM Suite 1905 ; SAP SuccessFactors HCM Suite 1908 ; SUCCESSFACTORS BIZX SUITE 1911 ; SuccessFactors HCM Suite 1204 ; SuccessFactors HCM Suite 1207 ; SuccessFactors HCM Suite 1210 ; SuccessFactors HCM Suite 1302 ; SuccessFactors HCM Suite 1305 ; SuccessFactors HCM Suite 1308 ; SuccessFactors HCM Suite 1311 ; SuccessFactors HCM Suite 1402 ; SuccessFactors HCM Suite 1405 ; SuccessFactors HCM Suite 1408 ; SuccessFactors HCM Suite 1411 ; SuccessFactors HCM Suite 1502 ; SuccessFactors HCM Suite 1505 ; SuccessFactors HCM Suite 1508