Solved

Will an extensionId ever get reused/resassigned to another user?

  • 7 January 2022
  • 1 reply
  • 272 views

I'm working on pulling call & message activity into our data warehouse via the RingCentral APIs. I'm currently consuming the following APIs:

- Get Company Call Log Records
- Message Store - Get Message List
- Get Extension List (also necessary in order to get Message Store data, because that API requires iterating over extensions to get all messages company-wide)
- Get Company Directory Entries

I already know that we intend to recycle extension numbers over time as folks come & go from the company. Therefore, I need to account for the fact that for any given extensionId, the extension number could change, thereby affecting my ability to link historical calls to the correct person if I'm not careful. (I'm planning on treating the extensions as a Type 2 slowly-changing dimension table on my end to handle this.)

However, what I don't know is the lifecycle of an extension record itself, based on the extensionId. So, I'm looking for some clarity on that.

Let's assume my own RingCentral extension looks like this in the Get Extension List API:

{
  "id": 123456789,
  "extensionNumber": "420",
  "contact": {
    "firstName": "Chris",
    "lastName": "Harmon",
    "jobTitle": "Data Engineer",
    "department": "Foo Corp",
    "email": "charmon@foocorp.com",
    "emailAsLoginName": true,
    "pronouncedName": {
      "type": "Default",
      "text": "Chris Harmon"
    }
  },
  "name": "Chris Harmon",
  "type": "User",
  "status": "Enabled",
  "permissions": {
    "admin": {
      "enabled": true
    },
    "internationalCalling": {
      "enabled": true
    }
  },
  "hidden": false
}

As mentioned above, I already know that extensionNumber 420 will eventually be recycled & assigned to someone else if I leave the company.

My questions are:

1. If I leave the company, what happens to the RingCentral extension record with extensionId 123456789? Does it remain associated with my user forever, or does it go back into a pool of available extensions to be reassigned to someone else?

2. Is it possible that extensionId 123456789 could be reassigned to a different user (and myself reassigned to a different extensionId) while I'm still at the company?

icon

Best answer by Phong1426275020 8 January 2022, 19:30

View original

1 reply

Userlevel 1

I am quite sure that the extensionId (123456789) will not be recycled. It is a unique id that the system generated when an extension is created and cannot be modified afterward. The extensionNumber is automatically assigned by the system when an extension is created and setup, but it can be changed by a super admin user during the creation process and after the extension is created.

Thus, you can rely on the extensionId to identify a unique user under an account w/o worrying about duplication.

Reply