Question

In order to call this API endpoint, user needs to have [ReadPersonalContacts] permission for requested resource.

  • 26 July 2018
  • 2 replies
  • 436 views

I'm getting this error while trying to retrieve contacts of each extension's


Exception:

In order to call this API endpoint, user needs to have [ReadPersonalContacts] permission for requested resource.  SDK HTTP Error at https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/244711004/address-book/contact  Response text: {    "errorCode" : "CMN-408",    "message" : "In order to call this API endpoint, user needs to have [ReadPersonalContacts] permission for requested resource.",    "errors" : [ {      "errorCode" : "CMN-408",      "message" : "In order to call this API endpoint, user needs to have [ReadPersonalContacts] permission for requested resource.",      "permissionName" : "ReadPersonalContacts"    } ],    "permissionName" : "ReadPersonalContacts"  }  Previous: Response has unsuccessful status
-------------------------------------------------

I don't see any permission called "ReadPersonalContacts".  I have added permissions "Contacts" and "Read Contacts". I don't see any   permission called "ReadPersonalContacts"











2 replies

Userlevel 1
Hi Nibu,

The error message is misleading. The reason you got that error, actually was that you logged in with one extension and try to read personal contacts of another extension (user). That is not allowed even the extension you login has the admin role. 

So try this instead:

https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/address-book/contact  

+ Phong

You might be interested in this answer here https://forums.developers.ringcentral.com/questions/10680/authenticate-as-root.html

Reply