RingCentral 转发号码 API `ReadUserForwardingFlipNumbers` 权限

Posted

技术标签:

【中文标题】RingCentral 转发号码 API `ReadUserForwardingFlipNumbers` 权限【英文标题】:RingCentral Forwarding Number API `ReadUserForwardingFlipNumbers` permission 【发布时间】:2018-04-04 19:59:24 【问题描述】:

当我尝试使用 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】:

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

User Settings > Messages & Notifications

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

Users > Roles > Role Name

例如:

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

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

【讨论】:

以上是关于RingCentral 转发号码 API `ReadUserForwardingFlipNumbers` 权限的主要内容,如果未能解决你的问题,请参考以下文章

获取有关 FaxOut RingCentral API 的传真状态更改的通知

更改Salesforce App中的RingCentral行为

如何获取 RingCentral 软电话中显示的用户状态?

如何以编程方式在 RingCentral 上发送消息?

json ringcentral-的OpenAPI

RingCentral Tech | Scrum框架下玩转敏捷实践