周末有没有改变/破坏Google Directory API的东西?

Sho*_*lla 12 google-admin-sdk

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

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

{"orgUnitPath":"/testorgunit_2"}
Run Code Online (Sandbox Code Playgroud)

回报

{
  "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"
  }
}
Run Code Online (Sandbox Code Playgroud)

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

{
  ...
  orgUnitId=id:02gyr1s20gshpvd,
  orgUnitPath=/
}
Run Code Online (Sandbox Code Playgroud)

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

小智 5

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