News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

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
Can't seem to successfully get an OAuth token when using an account other than the Admin
Tags: app administration
Jun 21, 2019 at 2:49am   •   1 replies  •  0 likes

When calling the /restapi/oauth/token endpoint I can successfully retrieve a token when I use the Admin account related to the client specified on the developer portal.

Our requirement is that individual users are able to retrieve their own OAuth token using their credentials (Username, Password & Extension) whilst still using the Client Id/Secret to make RingOut calls.

Unfortunately whenever I attempt to get a token using an account other than the Admin it receive an error code OAU-140 (Invalid resource owner credentials) despite being able to login to the RingCentral phone app with the same credentials.

Am I missing something with how the system operates? It is my understanding that this should be possible and that I can use the extension to make RingOut calls after authorizing using the individuals credentials; should this be allowed? Is this not how the system is intended to be used? If it is intended to be used this way then how can I get around this problem?



1 Answer
answered on Jun 21, 2019 at 7:34am  

This is weird and must be a mistake somewhere because any user under the same account should be able to login with its own credentials.

Are you working on the sandbox environment or the production? Make sure that other users are under the same the account with the admin one.

Did you try to login with the main company number and the extension number with the password of that extension?

Did you also try to login with the extension's phone number w/o the extension number and the password of that extension?

If you have tried all the above and it still does not work, let me know your account main company number and the app name (or the client Id) so I can have a look at it.


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

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

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