News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
User Extension Creation via API defaults to Standard (International) Role
Tags: rest api
May 21, 2021 at 11:21am   •   1 replies  •  0 likes
Brian Smith

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 Answer
answered on Sep 3, 2021 at 5:41pm  

@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


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us