Symptom
You tried to run a query for NomineeHistory entity the API response giving an error code as "COE_GENERAL_FORBIDDEN" and error message as "[COE0020]You don't have permission to view the Nominee history entity".
Environment
- SAP SuccessFactors HCM suite
- OData
Reproducing the Issue
- Run an OData API Query for e.g. https://<api_endpoint>/odata/v2/NomineeHistory
- You may see the API response as below:
<code>COE_GENERAL_FORBIDDEN</code>
<message lang="en-US">[COE0020]You don't have permission to view the Nominee history entity</message>
Cause
This is standard and/or expected behavior of NomineeHistory Entity. You can't query the basic information of Nominee History by using this entity directly.
Resolution
To query the NomineHistory entity you can only query it by expanding the navigation properties successorNav/nomineeHistoryNav of the following entities:
- LegacyPositionEntity
- Position
- TalentPool
- NominationTarget
Use Case: Query the Nomination History Information
See Also
Refer the Documentation: NomineeHistory | SAP Help Portal
Keywords
NomineeHistory, Api, OData, COE0020, Entity, Nomineehistory, Nominee, History , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem