You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!