Question

User Extension Creation via API defaults to Standard (International) Role

  • 21 May 2021
  • 1 reply
  • 208 views

When a user is created with a type of "User" invoked via HTTP POST to https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension

The default role is always "Standard (International) ", but I wanted to force a default of just "Standard." Is there a request option I'm missing on the request body or can this role type be changed after creation with a subsequent update call to a different endpoint?


I experimented with adding this to the request body, which is present in the response, but doesn't appear to have any effect on the request:

"permissions": { "admin": { "enabled": false }, "internationalCalling": { "enabled": false } }


Initial payload used to create users:

{

"contact":{"firstName":"Test", "lastName": "User1", "email":"1234@domain.com","department":"1"},

"type":"User",

"extensionNumber":"1234",

"regionalSettings":{"timezone":{"id":"51"}},

"status":"Enabled"

}


1 reply

@Brian Smith

There is an older post/question from 2019 that asks a similar question. Though it is more specific to how a Role can be assigned via API.

@Phong Vu indicated in that thread the RC Role API is not surfaced for consuming.

Just reviewed the current API Reference pages, finding the section Roles and Permissions. Looks to be a rather rich functional set. We will be implementing that shortly in our provisioning automations.

/Paul

Reply