首页 文章

RingCentral Forwarding Number API`ReadUserForwardingFlipNumbers`权限

提问于
浏览
1

当我尝试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 回答

  • 1

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

    User Settings > Messages & Notifications

    您可以在以下在线帐户门户中看到:

    Users > Roles > {Role Name}

    例如:

    enter image description here

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

    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"
        ]
    },
    

相关问题