RingCentral invalid_client [ThirdPartyAppAccess]权限必需错误

时间:2018-08-14 04:04:28

标签: user-permissions ringcentral

以下错误是什么,我该如何解决?当我尝试执行三足式OAuth时抛出该错误。我还发现只有部分用户有此问题。如果我使用自己的用户名进行授权没有问题。但是某些用户返回此错误。

{
  "error" : "invalid_client",
  "error_description" : "[ThirdPartyAppAccess] permission required",
  "errors" : [ {
    "errorCode" : "CMN-408",
    "message" : "[ThirdPartyAppAccess] permission required",
    "parameters" : [ {
      "parameterName" : "permissionName",
      "parameterValue" : "ThirdPartyAppAccess"
    } ]
  } ]
}

1 个答案:

答案 0 :(得分:0)

要查找有关此权限的信息,请使用permissionId = ThirdPartyAppAccess调用以下端点。

GET /restapi/v1.0/dictionary/permission/{permissionId}
GET /restapi/v1.0/dictionary/permission/ThirdPartyAppAccess

您将收到以下响应,指示您应该在RingCentral在线帐户门户(https://service.ringcentral.com)中为用户角色启用“第三方应用访问”权限。

{
    "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/dictionary/permission/ThirdPartyAppAccess",
    "id": "ThirdPartyAppAccess",
    "displayName": "Third Party Apps Access",
    "assignable": true,
    "readOnly": false,
    "siteCompatible": "Independent",
    "category": {
        "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/dictionary/permission-category/Features",
        "id": "Features"
    },
    "includedPermissions": []
}

在此阅读有关此权限的更多信息:

https://success.ringcentral.com/articles/RC_Knowledge_Article/5-10-Editing-the-Extension-Permissions-via-Web

有关更多信息,请参见以下答案,其中还包括如何检查用户是否具有权限:

https://stackoverflow.com/a/50978630/1908967