How can I list users who are active and not suspended? | Community
Skip to main content

How can I list users who are active and not suspended?

  • March 1, 2023
  • 2 replies
  • 0 views

https://{subdomain}.zendesk.com/api/v2/users.json?active=false

Lists both users with active true and users with active false.  Sames goes for suspended=true.  How can I filter on these values?

2 replies

Greg29
  • March 1, 2023

Hi Sam! The query parameter that you passed is not an available side-load for users, which is why it's returning all users. I am not aware of an APIs that return all active users, however you can list deleted users with this request.


  • Author
  • March 2, 2023

Hi Greg,

Not sure I understand you there.  From that documentation it sounds like side-loading refers to loading data from another table/object, but active and suspended are both fields within the user record, which is the record I'm retreiving.  I'm not looking to return any aditional data, the fields I want are both already returned as part of the user record, I just want to filter on them.