Searching users, groups, and organizations

Return to top
Have more questions? Submit a request

52 Comments

  • Peter Griffith

    This question doesn't seem to have been updated since the new search came out so I am going to check again: can I search for users that are not assigned to an organization?

    1
  • Ahmad Dahlan

    Hi, 

     

    Can the API lookup numbers from 2 different User and Organization Fields using the same Field key.

    0
  • Justin J. Smal

    Any chance you guys enable Search on Organization id? Seems to be a big gap as it can't be searched on - even in your Advanced Search interface in Zendesk.

    0
  • Nabeel Bilgrami

    Hi Anton,

    Can you please update the article that Suspended users can be searched? Suspended users can now be searched/filtered by property is is_suspended:true (or false). This information is already provided in following article: https://support.zendesk.com/hc/en-us/articles/360022175334-Release-notes-through-2018-08-11

    0
  • Brett Bowser
    Zendesk Community Team

    Happy to help Alex :)

    0
  • Alex Pereira

    Hi Brett,

    Thanks for the response. I am familiar with the API (I created our "sync" program using it), but I am not sure how to search for organizations with 0 tickets associated with them. Could you show me the query for it?

    I can see any field in the Organization's object that would give me that:

    https://developer.zendesk.com/rest_api/docs/support/organizations#organizations

     

    Thanks Again!

    0
  • Michel MBOCK

    Hi everybody,

    how can i search an organization in a full name not in partial name ?

    My request is this one

    https://society.zendesk.com/api/v2/search?query=type:organization%20name:MYNAME ........

    the result are all organisation with partial name

    Thank you for help

    0
  • Nicole S.
    Zendesk Community Team

    Hi Jen - 

    What plan level are you on? 

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Alex,

    Most likely using GoodData will be your easiest option here and typically the one that I recommend first.

    The other option would be to use our Zendesk API and create a script that searches for organizations with 0 tickets associated with them. 

    I also recommend taking a look at the available export options listed in the following article:Ticket Export Options

    Apologies for not being able to provide another alternative for you at this time :-/

    Let me know if you have any other questions!

    0
  • Jessie Schutz
    Zendesk team member

    Thanks for coming back and letting us know, Mike!

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Jason,

    You should be able to use the following:

    field_name_1:platinum -field_name_2:gold

    Let us know if that doesn't work :)

    0
  • Chris Nicholson-Doyle

    How do you search on Twitter or Facebook handle from the Search bar?

    0
  • Brett Youngberg

    Is it possible to search by user id or organization id?

    0
  • Brett Youngberg

    With the advanced search. If I know the id of the user or the organization the I want to pull it up

     

    e.g. organization:id 123456 or user:id 234567

    0
  • Nicole S.
    Zendesk Community Team

    Thank you for that suggestion, Nabeel. I've asked our documentation team to look into this.

    0
  • Elissa
    Zendesk Community Team

    Hello Serhii Dolhopolov

    There is not a way to use the support search bar to identify which organizations have an external_id. But, you could use the organizations API endpoint which has an external_id attribute. See more information on that here: https://developer.zendesk.com/rest_api/docs/support/organizations. You would have to scroll through or write a script to pull out all organizations that have an external_id of "null".

    I hope that helps!

    0
  • Holly
    Zendesk Customer Advocate

    Hi Chris,

    Regretfully, it's not possible to search for users based on their Twitter or Facebook handle right now. I'd recommend sharing your feedback in our Product Feedback forum to bring more visibility to this request.

    You can search for tickets created via those channels by searching for via:twitter or via:facebook, which may help make those users easier to find. 

    I hope this helps!

    0
  • Brett Bowser
    Zendesk Community Team

    Hi Pedro,

    I reached out to our team internally and they are looking to make improvements with the search functionality within the coming year. It sounds like what you're looking for may be possible we don't have an ETA of when this could be implemented if at all.

    Do know that your feedback has been passed along to the appropriate team and if we have additional questions we will follow-up here :)

    Cheers!

    0
  • Shannon Anahata
    Zendesk Product Manager

    @Mike. It does sound like you're doing everything correctly. We'll need to take a look at your account to verify what might be going wrong, so yes, please submit a ticket and we'll go from there. Thanks!

    0
  • Michel MBOCK

    Hi jessie, 

    i have a window application and i am try to check if an organization already exist.

    the syntax that i am using is this one

    https://society.zendesk.com/api/v2/search?query=type:organization%20name:MYNAME

    sure i am already connected with user and password.

    thank you for help

    0
  • Nicole S.
    Zendesk Community Team

    Hey Brett - 

    So sorry for the delayed response. The easiest way to do this is to simply enter the ID number into the url, so for example you would have: 

    https://yourdomain.zendesk.com/agent/users/123456

    Give that a try and let me know if you have further questions. 

     

    0
  • Farhad Fatemi

    Hi,

    There seems to be a bug with the user search API when searching users using a query for phone numbers. When searching a user using the phone number the email field returns null. Searching for the same user using the email or the username returns the email value.

    Is this how it's supposed to be or is it a known bug?

    Endpoint: /api/v2/users/search.json

    Result with a phone query: /api/v2/users/search.json?query={{phoneNumber}}

    "email": null,

    Result with a username query: /api/v2/users/search.json?query={{userName}}

    "email": "{{email}}",

    The user ID's return is the same, so there is no chance that a different user is presented.

    Thank you,
    Farre

    0
  • Niall Colfer

    Hi Peter,

    You can indeed, by using the search operator 'organization:none'. This applies equally to the user search as above, and the full Zendesk search. You can read a bit more about it at https://support.zendesk.com/hc/en-us/articles/203663226-Zendesk-search-reference#topic_qmq_oxc_vc

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Jo,

    This seems like a bug so we will want to do some troubleshooting in your account to see if we can replicate. I'm going to generate a ticket on your behalf so we can look into this with you.

    You'll receive an email shortly stating your ticket has been created.

    Cheers!

    0
  • Vanessa Beavers

    Is there a way to search for duplicate end users in Zendesk?  We've got end users getting pulled in via API and end users emailing our company directly and at times, it results in a duplicate end user being created.  I'd like to be able to easily run a search every so often to get these cleaned up.  Suggestions?

    0
  • Mike Abrahamson

    I am having trouble searching for organizations based on custom Org field values.  I created a custom drop-down whose field key is org_type and applied one of the values to several orgs.  However I get no results when I search using "org_type:agency", for example.

    Should I submit a ticket about this?

    0
  • Gaurav Majithia

    I was able to search Organizations which has a blank custom_field by using below Search:

     

    type:Organization Custom_Field:None

     

    How Do I search Organizations which has some data in Custom_Field.. something like Not Null. ?

     

    type:Organization Custom_Field: Not None

    type:Organization Custom_Field <> Not None

    type:Organization Custom_Field=! Not None

    0
  • Nicole S.
    Zendesk Community Team

    Hey Brett - 

    Where/how are you trying to search? 

    0
  • Jason Kadlec

    Can I search two custom user fields, where in one field I want to find a value, and the second field I want to find has NOT the value:

     

    custom_field1:foo

    !custom_field2:bar 

     

    ^ find all users that have the value foo in custom_field1 and do NOT have the value bar in custom_field2 

     

     

    0
  • Jenni

    Hi Gilad,

    There is a way to pull from multiple groups! In order to do so, you would want to have those groups separated, not within the same quotation marks. To match your example with Round Users and Square Users, the call you'd want to make would look more like this:

    `/api/v2/search.json?query=type:ticket+group:"Round Users"+group:"Square Users"&sort_by=created_at&sort_order=asc` 

    You can also use this for even more groups, you'll just want to add "+group:"Group Name"", so for example, to add in Triangle Users, it would be

    `/api/v2/search.json?query=type:ticket+group:"Round Users"+group:"Square Users"+group:"Triangle Users"&sort_by=created_at&sort_order=asc`

    I hope that helps!

    0

Please sign in to leave a comment.

Powered by Zendesk