question

dl-mozart46 avatar image
dl-mozart46 asked dl-mozart46 answered

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

rest api
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anton-nikitin avatar image
anton-nikitin answered
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 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

dl-mozart46 avatar image
dl-mozart46 answered
Thanks Anton!
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys