Legacy Dev Forum Posts

 View Only

Sign Up

Search Users by Work eMail

  • 1.  Search Users by Work eMail

    Posted 06-05-2025 18:02

    Szlaski_Daniel | 2018-09-10 17:24:25 UTC | #1

    Hi, I'm trying to find Users via /api/v2/users/search API function and look for Work email address as a Search value - no results. Regular mail (main email) and other fields works.

    Part of "me" for the searched user:

    "addresses": [ { "address": "daniel.szlaski@inin.com", "mediaType": "EMAIL", "type": "WORK" } ],

    When trying to find this user via /api/v2/users/search with following body, it returns 0 results:

    { "sortOrder": "asc", "sortBy": "address", "pageSize": 1, "pageNumber": 1, "query": [ { "fields": ["addresses"], "value": "daniel.szlaski@inin.com", "type": "EXACT" } ] }

    Any idea what's wrong there?


    anon39326996 | 2018-09-10 17:29:55 UTC | #2

    Have you tried using /v2/search/suggest? https://developer.mypurecloud.com/api/rest/v2/search/index.html#postSearchSuggest


    Szlaski_Daniel | 2018-09-10 20:42:59 UTC | #3

    Hi, still no luck. It works for some of the fields like (chat.jabberId)

    ` "fields": ["chat.jabberId"],`

    but for others not. What I need is to find user by Work Mail address.


    system | 2018-10-11 20:42:59 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 3524