postUsersSearch always returns empty 'addresses' field

Hi,

I am using the Javascript SDK where I perform a postUsersSearch. The search gives me a few results but the 'addresses' field always is an empty array. I am expect it to contain contact information.
The use case: I want to provide a sort of phonebook lookup in our integration and I need to obtain the phonenumber of the search results to continue the flow.

I currently have a PureCloud enviroment with WebRTC phone only. Could this be the issue? Even when using WebRTC I am expecting some sort op SIP address to be returned.
Any help would be greatly appreciated!

Please find the post request body below. I have set the expand field to contain 'addresses' just to see I this would help, but it does not.

let body = {
"sortOrder": "ASC",
"sortBy": "",
"pageSize": 100,
"pageNumber": 0,
"expand": ['presence', 'addresses'],
"query": [
{
"startValue": "",
"fields": ["name", "email"],
"value": searchValue,
"type": "CONTAINS"
}
]
}

Addresses are what is configured on the user's profile page and are unrelated to the phone the user is using. If you're not seeing address information, it should be because that user doesn't have it set on their profile. If they do have it and it's not coming back in the results, please open a case with PureCloud Care to report the issue. The addresses property does not require an expand to be returned.

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