How to search users using criterial like first name or type?

Hey There!

When doing a GET on /users => we receive all users
for example: https://api.zoom.us/v2/users?page_size=1
{
“page_count”: ,
“page_number”: 1,
“page_size”: 1,
“total_records”: ****,
“next_page_token”: "
",
“users”: [
{
“id”: ““,
“first_name”: “Bruce”,
“last_name”: “Wayne”,
“display_name”: “Bruce Wayne”,
“email”: “Bruce.Wayne@domain.com”,
“type”: 2,
“pmi”: ,
“timezone”: “America/New_York”,
“verified”: 1,
“dept”: “”,
“created_at”: "
”,
“last_login_time”: "
”,
“last_client_version”: “",
“pic_url”: "
”,
“group_ids”: [
"
],
“language”: “en-US”,
“phone_number”: “”,
“status”: “active”,
“role_id”: “2”,
“employee_unique_id”: "
”,
“user_created_at”: “*****”
}
]
}
And I’m looking to get all users with “type”= 2, or “verified” = 1.

Could someone help please?

Hi @khalil.benamor
Thanks for reaching out to us!
We do not have a specific way to query users according to their type or any other attribute.
I recommend you to programmatically loop into the response and find the user according to the attribute you are looking for.

If you look into our docs here:

You will see that you can pass some query parameters but not the ones that you are looking for.
Cheers,
Elisa