Skip to main content
The First Step
September 18, 2020
Question

SCIM API User add/replace Work Phone

curl --request PATCH 
  --url https://platform.devtest.ringcentral.com/scim/v2/Users/283100004 
  --header 'accept: application/json' 
  --header 'content-type: application/json' 
  --data '{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"phoneNumbers[type eq "work"].value","value":"+4989700755555"}]}'
{  "schemas": [    "urn:ietf:params:scim:api:messages:2.0:Error"  ],  "status": "403",  "detail": "The operation(add) for path(phoneNumbers[type eq "work"].value) is not permitted" } 

Okay, hopefully my last question: have created a User using the SCIM API without stating a work phone, so the user only hast a phone number of type "other" and later added "mobile".
Now I want to add the work phone, but the API does not allow it.
Is that possible somehow?

We are thinking about migration scenarios, adding the user first without his real phone number and when the carrier is ready switching to RingCentral by adding the phone number to the user.

    1 reply

    PhongVu
    Community Manager
    Community Manager
    September 18, 2020

    You cannot set the "work" number, which is read-only, since RC, as a VoIP provider, provides such a number, The work number is assigned automatically (from a digital line number of an unassigned extension) when you create a SCIM user. You can replace other numbers though.