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
Is there an API that tells me if the user logging in has admin privileges?
Tags: rest api
Jul 31, 2015 at 2:58pm   •   2 replies  •  0 likes
dl-mozart

I'm also writing an app that can pull call logs from my company's account. However, I believe call log access is limited to a user's own call logs unless the logged in user has admin privilege.


I want to throw up a message to my users so they know what their call log access scope is based on whether or not they're an admin. Is there an API that tells me this? Thanks

2 Answers
answered on Aug 3, 2015 at 3:16pm  
Thanks Anton!

 0
answered on Aug 3, 2015 at 2:21pm  
You are right: account call logs are accessible only by administrators. You can easily understand if a user is administrator or not by just calling extension info API for this user:

GET https://platform.ringcentral.com/restapi/v1.0/account/~/extension/255537016 HTTP/1.1 
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Language: en-US
{
  "uri" : "https://platform.ringcentral.com/restapi/v1.0/account/255537016/extension/255537016",
  "id" : 255537016,
  "extensionNumber" : "101",
  ...
  "permissions" : {
    "admin" : {
      "enabled" : true
    },
    "internationalCalling" : {
      "enabled" : true
    }
}



 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