Skip to main content
Question

Is there an API that tells me if the user logging in has admin privileges?


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 replies

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
    }
}



  • 0 replies
  • August 3, 2015
Thanks Anton!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings