question

nibu-eapen avatar image
nibu-eapen asked ·

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

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"










topic-default
1 |1000 characters needed characters left characters exceeded

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

Phong Vu avatar image
Phong Vu answered ·
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
Share
1 |1000 characters needed characters left characters exceeded

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

Transcend Dev avatar image
Transcend Dev answered ·
Share
1 |1000 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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