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 should we authenticate users in order to send SMS on behalf of different extensions in the account using API
Tags: sending sms, rest api, developer sandbox
May 10, 2023 at 1:44pm   •   1 replies  •  0 likes
Yang

Our dev is developing an app using Ringcentral's SMS API to send SMS on behalf of different users (extension) in our ringcentral account. Each user extension in our Ringcentral account has a DID and are assigned with additional numbers

Is there a way to authenticate a super admin user to be able to send out SMS on behalf of other extenison ? After some googling, seems it is not posisble but I just want to ask again to see if things has changed in Ringcentral.


Also, if we need to be able to send out SMS on behalf of each user/extension in ringcentral using API, what's the best way to authenticate those users?

For JWT, do we have to ask each user we need to send out SMS on behalf of to have sign up in the Dev portal and then issue a JWT for that particular user? What if there are 100 users, do we need to do it with those 100 users each?? and each time there is a new user added, we will have to sign the new user up on the Dev portal and create the JWT code for that new user, add it to our code??

Is there a better way of doing this?


Thanks




1 Answer
answered on May 10, 2023 at 2:44pm  

Even a super admin cannot send SMS on behalf of other user extensions.

You can either request your users to provide their JWT token or make your app a 3-legged authorization and ask them to login your app once. After a user login, keep the refresh token valid all the time by implement auto refresh function to refresh the token periodically. Then your app can use the user access token to send SMS messages on the user's behalf.


 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