05-27-2025 07:45 AM
People can have several mail addresses, but one or them is the "primary mail address".
So the question is, how to get this "primary mail address" via API from people.
The reason ist when call a GET with parameter email you have to use the "primary mail address", otherwise you will not find the people.
And when calling a GET without parameters, it is not clear which of the emails string array is "primary mail address".
Solved! Go to Solution.
05-28-2025 02:37 AM
Thank you for reaching out to Webex Developer Support. To identify a user’s primary email address, we recommend using the SCIM 2.0 Users API https://developer.webex.com/admin/docs/api/v1/scim-2-users instead of the standard People API. The SCIM response clearly indicates which email is primary using a "primary": true
flag.
For example:
"emails": [
{
"value": "Todayandtom@gmail.com",
"type": "work"
},
{
"value": "Todayandtom@gmail.com",
"type": "work", "primary": true } ]
The People API, on the other hand, returns an email list but does not specify which one is the primary, which can make searches less reliable if you're not using the exact email address.
05-28-2025 04:00 AM
Perfect! Thanks a lot.
05-28-2025 02:37 AM
Thank you for reaching out to Webex Developer Support. To identify a user’s primary email address, we recommend using the SCIM 2.0 Users API https://developer.webex.com/admin/docs/api/v1/scim-2-users instead of the standard People API. The SCIM response clearly indicates which email is primary using a "primary": true
flag.
For example:
"emails": [
{
"value": "Todayandtom@gmail.com",
"type": "work"
},
{
"value": "Todayandtom@gmail.com",
"type": "work", "primary": true } ]
The People API, on the other hand, returns an email list but does not specify which one is the primary, which can make searches less reliable if you're not using the exact email address.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide