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
Retrieve all user details with attributes (email, extensions)
Tags: sdk
Nov 17, 2019 at 11:13pm   •   1 replies  •  0 likes
Christine Dutra

How can I access all users through API? I have an admin user and I can see all users listed on UI when i logged in as a user in the Ringcentral portal.

When I want to achieve the same functionality through API, First I do not see any availability of 'client_credential' flow. I see only 'password' flow when I select no UI option.

When I call following API

https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~

It gives only main admin user details with the extension. I was expecting all the extension details here.

If I pass extension explicitly then I can get data for other extensions (and assigned user) details. For example, if there are 2 extensions - 1234, 4567 - I need to call v1.0/account/~/extension/4567 to get the details.

My need is that I need to find active calls of a user based on email id. Active call details can be fetched for an extension only.

I was hoping to get all users' information - scan their email ids and find appropriate extension -> and then call the Active call API. I am stuck at getting all user information step only at this point.

Thanks in advance for any hint, please.

1 Answer
answered on Nov 18, 2019 at 7:26am  

You said "client_credential" flow, do you refer to the OAuth (3 legged authentication)? If yes, check out this quick start and choose your programming language.


As an admin, you can read all extensions by using the Get Extension List endpoint. The response contains an array of records with each record contains an extension info. The email and other info is under the contact object.

If you want to map an active call with an extension's email, you have to read all extensions with the API mentioned above, keep their email and id in a list then use the id to match an active call "extensionId" (under the "from" or the "to" object depending on the direction of that active call)


Hope this helps.


 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