Did something change/break with Google Directory API over the weekend?
Asked Answered
B

3

12

Starting this morning, I am unable to set orgUnitPath on a User object using raw HTTP protocol.

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

{"orgUnitPath":"/testorgunit_2"}

returns

{
  "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 doesn't seem to be documented anywhere, but I'm also noticing that the data coming back from the Directory API does now include an orgUnitID property in addition to the orgUnitPath property.

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

Can anyone confirm if there was an API change that now requires orgUnitId to be also be supplied in addition to orgUnitPath or if this is a bug that was just introduced?

Bi answered 24/8, 2015 at 16:48 Comment(2)
I am having the same issue, however there has not been any changes in the revision history: developers.google.com/admin-sdk/directory/v1/…Insoluble
It appears Google has either rolled back or fixed the API change that caused this issue - thanks for all the feedback.Bi
J
5

This is most definitely a bug. For instance, the Google Apps Directory Sync tool which makes use of the API is also affected and there is not an update for the tool.

Jennijennica answered 24/8, 2015 at 17:14 Comment(0)
I
3

There has been a bug filed. I suggest you star the issue and add any relevant info you can to help this issue get fixed quickly.

Insoluble answered 24/8, 2015 at 20:25 Comment(0)
G
1

As a workaround, switching to users.update() instead of patch should work until Google fixed the issue. No modifications to the body should be needed.

Gilthead answered 24/8, 2015 at 22:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.