【问题标题】:Did something change/break with Google Directory API over the weekend?周末 Google Directory API 发生了什么变化/中断?
【发布时间】:2015-11-18 04:28:53
【问题描述】:

从今天早上开始,我无法使用原始 HTTP 协议在用户对象上设置 orgUnitPath。

PATCH /admin/directory/v1/users/testuser_1440432547467%40example.com

{"orgUnitPath":"/testorgunit_2"}

返回

{
  "error": {
     "errors": [ {
       "domain":"global",
       "reason":"invalid",
       "message":"Invalid Input: Inconsistent Orgunit id and path in request - 8100451664789505, /testorgunit_2"}],
     "code":400,
     "message":"Invalid Input: Inconsistent Orgunit id and path in request - 8100451664789505, /testorgunit_2"
  }
}

OrgUnit ID 似乎没有记录在任何地方,但我也注意到从 Directory API 返回的数据现在除了 orgUnitPath 属性之外还包含 orgUnitID 属性。

{
  ...
  orgUnitId=id:02gyr1s20gshpvd,
  orgUnitPath=/
}

任何人都可以确认是否存在 API 更改,现在除了 orgUnitPath 之外还需要提供 orgUnitId,或者这是否是刚刚引入的错误?

【问题讨论】:

标签: google-admin-sdk


【解决方案1】:

这绝对是一个错误。例如,使用 API 的 Google Apps Directory Sync 工具也受到影响,并且该工具没有更新。

【讨论】:

    【解决方案2】:

    已经有a bug filed。我建议您为问题加注星标并添加任何相关信息,以帮助快速解决此问题。

    【讨论】:

      【解决方案3】:

      作为一种解决方法,在 Google 解决问题之前,切换到 users.update() 而不是补丁应该可以工作。不需要对主体进行任何修改。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多