Users filtering by many roles | Community
Skip to main content

Users filtering by many roles

  • July 19, 2022
  • 1 reply
  • 0 views

Tamara12

Hi :)

According to documentation there is ability to filter users by many roles:
https://developer.zendesk.com/api-reference/ticketing/users/users/#using-curl

I supposed such filtering will return all users with role "admin" along with all users with role "end-user". My intention was to get all users, except "agent", in one request. But API returns no users at all, regardless there are few admins and one end-user:

https://{subdomain}.zendesk.com/api/v2/users.json?role[]=admin
returns 3 users

https://{subdomain}.zendesk.com/api/v2/users.json?role[]=end-user
returns 1 user

https://{subdomain}.zendesk.com/api/v2/users.json?role[]=admin&role[]=end-user
returns nothing

What did i do wrong? :)

1 reply

Tamara12
  • Author
  • July 19, 2022

No it works for me too :) There was an issue with arguments serialization in our side, sorry for inconvenience.