Person Search BO > workerSearchesV2 REST API doesn't work while fetching employees own record
Summary:
We are getting REST API Error in MANAGER_PERFORMANCE_EVALUATION_ASSISTANT AI Agent, where its trying to fetch the logged in user Person Id using the Person Search BO, but the REST API is giving error.
We have added this Privilges in the JOB Role - Use REST Service - Worker Searches V2, still having issues.
Error:
{
"title": "Bad Request",
"status": 400,
"o:errorDetails": [
{
"detail": "Cannot add data security to any index in the query.",
"o:errorCode": "FND_ERROR_SEARCH_SERVICE_UNAUTHORIZED_INDEXES"
}
]
}
REST API:
https://<POD>/hcmRestApi/redwood/11.13.18.05/workerSearchesV2
Payload:
{
"securityFilters": {
"type": "PersonSearch",
"value": "AdvancedSearch"
},
"query": 1460633,
"searchFields": [
"PersonNumber"
],
"displayFields": [