diff --git a/bamboosdk/api/employee.py b/bamboosdk/api/employee.py index dd47e810..7aa8916d 100644 --- a/bamboosdk/api/employee.py +++ b/bamboosdk/api/employee.py @@ -4,10 +4,11 @@ class Employee(ApiBase): GET_EMPLOYEE_REPORT = '/v1/reports/custom?format=JSON&onlyCurrent=false' + payload = { "fields": ["displayName", "firstName", "lastName", "department", "workEmail", "supervisorEmail", "status"] } def get_all(self): """Get the list of employees from bambooHr Returns: List with dicts in Employee schema. """ - return self._post_request(self.GET_EMPLOYEE_REPORT) + return self._post_request(self.GET_EMPLOYEE_REPORT, payload=self.payload)