SAP Knowledge Base Article - Public

3575964 - [COE0020] You don't have permission to view the Nominee history entity - OData API

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

  1. Run an OData API Query for e.g. https://<api_endpoint>/odata/v2/NomineeHistory
  2. 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

Operation

Query

HTTP Method

GET

URI

(For MDF positions only) https://<api-server>/odata/v2/Position?$select=successorNav/nomineeHistoryNav&$expand=successorNav/nomineeHistoryNav&$filter=successorNav/id%20ne%20null&$format=json

(For legacy positions only) https://<api-server>/odata/v2/LegacyPositionEntity?&$select=positionCode,successorNav/nomineeUserId,successorNav/nomineeHistoryNav&$expand=successorNav/nomineeHistoryNav&$filter=%20positionCode%20eq%20%278%27%20&$format=json

(For talent pools only) https://<api-server>/odata/v2/TalentPool?&$select=code,successorNav/nomineeUserId,successorNav/nomineeHistoryNav&$expand=successorNav/nomin

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

Product

SAP SuccessFactors HCM Core 2411