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
How do I create an extension and role for an user with API?
Tags: rest api
Sep 12, 2019 at 11:25am   •   4 replies  •  0 likes
Naveen Mula

I am trying to create an extension for the user with passing roles in the json body. But I am getting errors saying roles parameter is not valid. I am using string and role id. Can you let us know how this API works? Wihtout passing roles I am able to create extension

4 Answers
answered on Sep 3, 2021 at 5:09pm  

@eric-olsen

It appears to assign/change a user's Role the Role Management APIs need to be used.

Any Role in the Account's inventory can be set as the Default Role. That implies all new users/extensions created will get that Role. I haven't seen where an existing Role can be specified in any of the Provisioning APIs (Extensions nor SCIM).


 0
answered on Jun 15, 2021 at 1:24pm  

@Anirban That doesn't answer OP's original question about if a role can be assigned via API. While yes, the role parameter is optional, as you stated, OP is requesting to know how to change the role if necessary/desired.


 0
answered on Sep 15, 2019 at 9:32am  

Just to add, as you can go through the API documentation here

https://developers.ringcentral.com/api-reference/Extensions/createExtension

As already mentioned in previous answer, roles param is optional so that's the reason you are able to create extension without issue. Please go the document carefully, you can get details of the API and each parameter description. You can even test you API here.


 0
answered on Sep 12, 2019 at 3:21pm  

First of all, the roles param is optional and I believe the default value is the "Standard User". The roles param is an array of object which has the "id" and "uri", which are internal values. For some reason we have no public API to query roles so it seems you can't define the roles param when creating an extension using API.

Please submit a support ticket to ask for accessing the read roles API. Please mention me on your request so I can talk to the support engineer.

+ Phong Vu


 1



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