Symptom
When querying data from TodoEntryV2, records of other users are being returned. However, you expect only the logged-in user's data to be returned.
Environment
- SAP SuccessFactors HCM Suite
- OData API
Reproducing the Issue
- Authenticate to the OData API using user "john", for example.
- Execute a GET request to the TodoEntryV2 entity.
- Observe that the response includes to-do records that belong to other users. However, you expected only "john" records to be returned.
Resolution
Add the parameter "&ignoretodoexport=true" to your API query. This parameter will result in the query returning only the logged-in user's To Do entries.
Example query:
https://<API_URL>/odata/v2/TodoEntryV2?&$format=json&ignoretodoexport=true
See Also
SAP Help Portal - TodoEntryV2
Keywords
todoentryv2, odata, ignoretodoexport, to-do, to do, oauth, logged-in user, self-only, user scope, , KBA , LOD-SF-INT-ODATA , OData API Framework , How To
Product
SAP SuccessFactors HCM Suite all versions
SAP Knowledge Base Article - Public