How can you get an employees manager details using a REST API?
Summary: I need to do an API call to get the manager of a new hire that is retrieved via Atom Feeds in an OIC Integration.
Content (please ensure you mask any confidential information): I have tried the following API calls but they do not return the desired information (manager name, manager person number, manager department, manager location).
/hcmRestApi/resources/11.13.18.05/workers?onlyData=true&expand=workRelationships.assignments.managers&fields=PersonNumber;names:FirstName,LastName;workRelationships:StartDate,TerminationDate;workRelationships.assignments:DepartmentName,LocationCode;workRelationships.assignments.managers:ManagerAssignmentId&limit=1&q=PersonNumber=XXXXX
***********************************************************/hcmRestApi/resources/latest/workers?onlyData=true&q=PersonNumber=<EmployeePersonNumber>&expand=workRelationships.assignments.managers&fields=PersonNumber;names:FirstName,LastName;workRelationships:assignments:managers:ManagerPersonNumber,ManagerPersonId
Tagged:
0