Symptom
You are trying to update some specific object for another employee using API, however it is failing with error below:
- "Employee ABC(name of the employee performing the API call) has no access to section XYZ(name of the object) for employee 456(name of the employee to have the data udpated)."
Environment
SuccessFactors OData API Framework
Reproducing the Issue
- POST request to the obejct being updated
- Response Payload:
"error": {"code": "COE_GENERAL_FORBIDDEN", "message": {"lang": "en-US", "value": "Employee ABC has no access to section XYZ for employee 456."}}
Cause
The request failed due to no access. For global assignment, background elements are created and updated on the Home assignment. The User performing the API call does not have edit permission for home assignment on the target employee.
Resolution
Ensure that the user has permission to the Home Assignment.
In case you wish to understand why or how it works, refer to the following documents for further understanding:
See Also
Keywords
error, access, section, employee, odata api, background elements, home assignment, permission, global assignment, update, api framework, successfactors , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem