RingCentral Forwarding Number API`ReadUserForwardingFlipNumbers`权限

时间:2018-04-04 19:59:25

标签: roles user-permissions ringcentral

当我尝试使用RingCentral Get Forwarding Number API时:

GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number

我收到此错误:

{
 "errorCode" : "CMN-408",
  "message" : "In order to call this API endpoint, user needs to have [ReadUserForwardingFlipNumbers] permission for requested resource.",
  "errors" : [ {
    "errorCode" : "CMN-408",
    "message" : "In order to call this API endpoint, user needs to have [ReadUserForwardingFlipNumbers] permission for requested resource.",
    "permissionName" : "ReadUserForwardingFlipNumbers"
  } ],
  "permissionName" : "ReadUserForwardingFlipNumbers"
}

即使在超级管理员角色下,我也无法在在线帐户门户网站(https://service.ringcentral.com)中看到此权限。如何解决此问题并访问此API?

1 个答案:

答案 0 :(得分:1)

ReadUserForwardingFlipNumbers是在线帐户门户中配置的用户权限。用户的分配角色需要在在线帐户门户中具有以下相应权限:

User Settings> Messages & Notifications

您可以在以下网址中找到:

Users> Roles> {Role Name}

例如:

enter image description here

您可以通过调用以下端点来验证您的用户是否具有此权限:

GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/authz-profile

这将返回一个带有permissions属性的JSON对象,该属性具有一组权限。此权限如下所示:

{
    "permission": {
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/dictionary/permission/ReadUserForwardingFlipNumbers",
        "id": "ReadUserForwardingFlipNumbers",
        "assignable": false,
        "readOnly": false,
        "siteCompatible": "Independent"
    },
    "effectiveRole": {
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/dictionary/user-role/3",
        "id": "3"
    },
    "scopes": [
        "Self"
    ]
},