cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
653
Views
0
Helpful
2
Replies

List of users with phone numbers including Webex Calling numbers

rmaslanka2
Level 1
Level 1

GET https://webexapis.com/v1/people can be used to return user information, including phone numbers.  It also returns a complete list of users if individual user details are omitted from the query.  The phone numbers returned are not associated with their Webex Calling configuration though.

We can then use GET https://webexapis.com/v1/people/{personId}/features/numbers with the personId returned from the first query to return the Webex Calling numbers associated with the personId.

Is there a way to simply return a list of users (rather than individual users) and their telephone numbers associated with Webex Calling?

 

 

 

2 Replies 2

rmaslanka2
Level 1
Level 1

I have tried that.  It appears when using https://webexapis.com/v1/people?email=rmaslanka1%40mycompany.com&callingData=true for example, I am returned the extension key from Webex Calling but not the phone number.  I am returned the phoneNumbers key but the values are from Active Directory, rather than Webex.

When using 

https://webexapis.com/v1/people/myID/features/numbers I am returned the directNumber key from Webex Calling that I'm looking for but can only query one user at a time.

Is your experience different?

Sample JSON returned:
Using https://webexapis.com/v1/people?email=rmaslanka1%40mycompany.com&callingData=true:

{

    "notFoundIds": null,

    "items": [

        {

            "id": "XXXXXXXXXXXXXXXXXXXX",

            "emails": [

                "rmaslanka1@mycompany.com"

            ],

            "phoneNumbers": [

                {

                    "type": "fax",

                    "value": "(555)554-4719"  <<<< FROM ACTIVE DIRECTORY

                },

                {

                    "type": "work",

                    "value": "15555396719"  <<<< FROM ACTIVE DIRECTORY

                }

            ],

            "extension": "5356",  <<<< FROM WEBEX CALLING

            "locationId": "XXXXXXXXXXXXXXXXXXXX",

            "displayName": "MASLANKA, RAY"

....
 Using https://webexapis.com/v1/people/myID/features/numbers
{
"distinctiveRingEnabled": true,
"phoneNumbers": [
{
"primary": true,
"directNumber": "7165555356",    <<<< FROM WEBEX CALLING
"extension": "5356"    <<<< FROM WEBEX CALLING
}
]
}

   

Janos Benyovszki
Cisco Employee
Cisco Employee

@rmaslanka2 have you tried https://developer.webex.com/docs/api/v1/people/list-people with setting callingData to true?