驱动器权限API损坏 - 空白域值

时间:2014-05-04 17:07:43

标签: google-drive-api

在查找特定文件的权限时,对于属于gmail.com或Google商业应用管理的域的用户,域值始终显示为空白。由于我们无法知道用户所属的域,因此空白域名完全破坏了我们的应用。请帮忙。

以下是列表权限调用API的输出。 Mary Smith和Tammy Smith属于两个不同的域,但这两个域都是由谷歌商业应用程序管理

{
  "kind": "drive#permissionList",
  "etag": "\"7_qGCxxuhPBUXrfn7_2ZO3McVUQ/85B6sgFWKSZAAnkp_aGSi_fQbVw\"",
  "selfLink": "...",
  "items": [
    {
      "kind": "drive#permission",
      "etag": "\"7_qGCxxuhPBUXrfn7_2ZO3McVUQ/dSzQR3bvSCqqYJS_1w3uteVH7l0\"",
      "id": "13993319320534768416",
      "selfLink": "...",
      "name": "Mary Smith",
      "emailAddress": "mary.smith@XXXX-inc.com",
      "domain": "XXXX-inc.com",
      "role": "owner",
      "type": "user"
   },
   {

     "kind": "drive#permission",
     "etag": "\"7_qGCxxuhPBUXrfn7_2ZO3McVUQ/F80isegNBXt9znQxi_magW5XUEg\"",
     "id": "03126377218273228506",
     "selfLink": "...",
     "name": "Tammy Smith",
     "domain": "",
     "role": "writer",
     "type": "user"
    }
  ]
}

0 个答案:

没有答案