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 send an SMS on behalf of another extension/phone number?
Tags: rest api, extension
Sep 6, 2018 at 7:36am   •   1 replies  •  0 likes
nibu-eapen

I am getting the following error when trying to send an SMS from a phone number assigned to a different user in my account. The error message makes mention of the "OutboundSMS" permission, but I do not see that permission in my account. Here is the error I am getting from the API:

 {
     "errorCode": "FeatureNotAvailable",
     "message": "In order to call this API endpoint for another extension, one
            of the following permissions [OutboundSMS] have to be granted 
            extended scope to the authorised user.",
     "errors": [
           {
              "errorCode": "CMN-419",
              "message": "In order to call this API endpoint for another extension,
                             one of the following permissions [OutboundSMS] have 
                             to be granted extended scope to the authorised user.",
              "permissionsName": "OutboundSMS"
           }
     ],
     "permissionsName": "OutboundSMS"
 }
1 Answer
answered on Sep 6, 2018 at 10:55am  

You are right. The error is indeed misleading because as you pointed out, that permission does exist in a way that you can assign to an extension or an app.

RingCentral only permits users to send SMS from phone numbers that are directly assigned to them. So there is no way currently that a user or admin can arbitrarily send an SMS on behalf of any other user.

But there are workarounds to this limitation. They key ultimately rests in being able to authenticate to the platform using the credentials of a person who is assigned a phone number you want to send SMS from. To do this, identify the phone number you want to send SMS from, and see who that phone number is assigned to. Let's say this person is named Andre.

As a Developer Admin, one can log into the Developer Console and generate a JWT credential on behalf of another user in the account. So ask Andre to login to the Developer Console so that they has an account there. Then have them generate a JWT credential, or have the Developer Admin generate one on their behalf.

Finally, use that JWT credential to authenticate to the API. Within the context of that session, an application can then send an SMS on behalf of the phone number assigned to Andre.

There is one small exception to this rule, and it relates to sending SMS from the Main Company Number. If this is your use case, then the person in the org assigned the role of "Auto Receptionist" can send SMS from the Main Company Number, in addition to the person to whom the Main Company Number may be assigned.


 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