Discussions
How to get a List of ** ONLY Active employees**
As per our requirements, we need to distinguish the employees as per their status.
To do that we are sending requests as follows,
To get only active employees the request is, https://www.humanity.com/api/v2/employees?access_token=
To get only disabled employees the request is, https://www.humanity.com/api/v2/employees?disabled=1&access_token=
To get only in-active employes the request is, https://www.humanity.com/api/v2/employees?inactive=1&access_token=
Now the issue we are facing is that we are getting a few employees in the response of both requests (i.e request 1 & 3). For example, we are getting the details for Andrew Logan in the response of request 1 as well in in the response of the request 3.
So my question is how can an employee be active and in-active both at the same time?