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 to handle two Bearer tokens (Store Manager & Super Admin)
Tags: authentication, auth
Jun 11, 2021 at 11:40am   •   1 replies  •  0 likes
Matt Kaplan

So, I have a react application with a Node.js backend. Currently, my application allows franchise store owners (that have a role of Store Manager) the ability to login and has options for them to change their Call Queue Audio While Connecting and Hold Music. Obviously, as a role of Store Manager they are unable to do that which is why on my Node.js API I want to sign in as a super user account to process that call.


I've already attempted todo the following to process this call on the backend but my application doesn't allow the Password flow. So, I guess I'm wondering if something like this is possible in the first place or do I have to give the franchise store owners the ability to do this defined within their roles?

platform.login({ 
   username: process.env.username, 
   extension: process.env.extension, 
   password: process.env.password 
})
1 Answer
answered on Jun 14, 2021 at 8:00am  

What API do you call to handle changing call queue greeting audio. I believe that you can customize the "Store Manager" role with the required user permission to allow the user changing the settings.

Let me know the exact API so I can check and let you know.


 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