I got the solution.
If I want to find number of
user@domain.yourdomain.com
- Use this command for get contact ID.
#zmmailbox -a
admin@domain.yourdomain.com.com -p password -m
user@domain.yourdomain.com s -t contact 'in:"Contacts"' | grep sws@domain
Note: you need use '" "' if you have space in search.
you got out put like this
3. 2fa6c7f0-2047-4e9d-807f-c35f0322c67e:423 cont
sws@domain.yourdomain คุณศิวัฒน์ ศิวะบวร 01/01/70 07:00
This is contact ID --> 2fa6c7f0-2047-4e9d-807f-c35f0322c67e:423
you need to cut only contact ID and send this to next command
- use this command for get phone number
#zmmailbox -a
admin@domain.yourdomain.com.com -p password -m
user@domain.yourdomain.com getContacts 2fa6c7f0-2047-4e9d-807f-c35f0322c67e:423
out put is all detail in this contact.
you need grep command for get only line you want
Example :
#zmmailbox -a
admin@domain.yourdomain.com.com -p password -m
user@domain.yourdomain.com getContacts 2fa6c7f0-2047-4e9d-807f-c35f0322c67e:423 | grep assistantPhone
out put is :
assistantPhone: 08-1803-2410