-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CrOS orgUnitPath change yields: Invalid Input: Inconsistent Orgunit id and path in request (Google API Bug?) #225
Comments
Shane,
Do: gam config debug_level 1 update cros xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx ou /Some/OU
Send me a Meet/Zoom invitation.
Ross
--
***@***.***
… On Dec 9, 2021, at 8:39 AM, Shane DeRidder ***@***.***> wrote:
When attempting the following (redacted) command:
gam update cros xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx ou /Some/OU
The response:
Organizational Unit: /Some/OU, CrOS Device: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx, Add Failed: 400: invalidInput - Invalid Input: Inconsistent Orgunit id and path in request - yyyyyyyyyyyyyyy, /Some/OU
"yyyy..." is a long integer, not the actual OU's ID as returned by Google.
I originally noticed this error in a system I've written that is not related to GAM at all, but GAM is affected as well. I suspect something at Google changed with the update/patch call to CrOS units' orgUnitPath
Google searches point to a similar response back in 2015. Really old regression on Google's part?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#225>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYL3SDKAA3IUHR7CPK63UQDLTVANCNFSM5JW5UO2A>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I sent the redacted output directly. |
Send me a Meet/Zoom invitation ross.scroggs @ gmail.com |
There's a Google API ticket open related to this. I don't believe this is GAM-specific. |
I can confirm I'm getting the same error response in the API Explorer as well. The ChromeOS Device's original OU or intended OU doesn't seem to make any difference. I've tried about a dozen or so devices across our enterprise. |
Adding to the fun:
Response:
|
Shane,
Try with your actual Customer ID rather than my_customer
Ross
--
***@***.***
… On Dec 10, 2021, at 7:30 AM, Shane DeRidder ***@***.***> wrote:
Adding to the fun:
curl --request PATCH
'https://admin.googleapis.com/admin/directory/v1/customer/my_customer/devices/chromeos/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?projection=FULL&key=*************************8 <https://admin.googleapis.com/admin/directory/v1/customer/my_customer/devices/chromeos/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?projection=FULL&key=*************************8>'
--header 'Authorization: Bearer ********************'
--header 'Accept: application/json'
--header 'Content-Type: application/json'
--data '{"orgUnitPath":"/Chromebooks/Disabled/Unassigned"}'
--compressed
Response:
HTTP/1.1 400 Bad Request
cache-control: private
content-encoding: gzip
content-length: 194
content-type: application/json; charset=UTF-8
date: Fri, 10 Dec 2021 15:19:19 GMT
server: ESF
vary: Origin, X-Origin, Referer
{
"error": {
"code": 400,
"message": "Invalid Input: Inconsistent Orgunit id and path in request - 2130216, /Chromebooks/Disabled/Unassigned",
"errors": [
{
"message": "Invalid Input: Inconsistent Orgunit id and path in request - 2130216, /Chromebooks/Disabled/Unassigned",
"domain": "global",
"reason": "invalid"
}
]
}
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#225 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYL4EW6BN6FNXHM4UORLUQIMJPANCNFSM5JW5UO2A>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I actually tried that as well. It yields the same error. |
On a whim, I supplied orgUnitId ("id:xxxxxx") in addition to orgUnitPath, and it succeeded. The error text "inconsistent ID and Path" was perplexing me. Google seems to have made a change. orgUnitId is not listed as a required parameter in the API reference, but seems to be as of yesterday, I still believe this is a bug and not an intended change...but Google. |
Shane,
Another user is seeing this as reported in the Gam chat group. Can I mention your name and/or results there?
Ross
--
***@***.***
… On Dec 10, 2021, at 7:46 AM, Shane DeRidder ***@***.***> wrote:
On a whim, I supplied orgUnitId ("id:xxxxxx") in addition to orgUnitPath, and it succeeded. The error text "inconsistent ID and Path" was perplexing me. Google seems to have made a change. orgUnitId is not listed as a required parameter in the API reference, but seems to be as of yesterday,
I still believe this is a bug and not an intended change...but Google.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#225 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYL5CK2BPAKE5YNNAWYTUQIOEVANCNFSM5JW5UO2A>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Absolutely. |
Just chiming in to say we are also seeing this issue across multiple applications using Admin Directory API as of Dec 9, 2021. The scripts and apps have been working for months and suddenly this issue appears. I have also seen reports back in 2015 of this happening and it apparently cleared itself up back then. Perhaps this one will clear up as well....or maybe Google will actually publish their change!! |
PS: We've submitted a Google workspace support requests as well as bug reports from multiple Workspace customers to see if it gets someone's attention, but so far just silence. |
I have a ticket in with Google Support as of yesterday as well. I found the aforementioned issue in their bugtracker today. Hopefully this is one of those things that simply goes away. I have a custom system in use in our enterprise that's a bit crippled because of it, and I'm not sure hacking in my workaround makes sense yet. |
Thank you all for working on this! I thought I was going crazy when scripts that had been working for months, and even worked during the day, stopped working at 5:00 on the eighth of December. I started going and only found a similar response from 2015, and nothing there seemed to help. Being a newbie at this, I was not sure where to go next. I felt better when I found funar's post and have been following it. I agree that implementing a work around for all my scripts is not feasible at this point but one one liner would help me get many kindergarteners working again. Here's my question, how do I implement that work around? I'd tried this statement " gam csv test.csv gam cros_sn ~serialNumber update ou id:xxxxxxxxxxxxxxx " It identified the serial number of the chrome book and the correct ou from the ID however it still gave the same error. Is this not what I needed to do? Thank You again for your help! |
We're running several different applications across multiple platforms (Python, C#, and Google Apps Script) and each of these seems to require a slightly different approach to work around it. We're not using GAM so I can't offer any specific support there, but on the other platforms there seems to be two options:
|
@bradshaffer6 - I didn't even occur to me that Google would accept a NULL orgUnitId. My work-around was doing an extra API call to get the orgUnitId for the new orgUnitPath from Google and sending it with the ChromeOSDevice update. This just saved me a bunch unnecessary API calls. Can I quote you in the Google Bugtracker? @hoffjd - GAM will need to implement the changes @bradshaffer6 is talking about in order to work around the issue. I'm pretty sure everyone's assumption is that this is something Google will fix and no changes are necessary, however. Only time will tell. |
Shane, Test with just orgUnitId Ross |
@funar sure, you can reference this in the BugTracker case. |
I've already changed the code (not released), it works with null or the actual id. |
Sending orgUnitId ("id:xxxxxxx"), but omitting orgUnitPath or sending a empty string for orgUnitPath seems to work as well. |
I'm on Google Workspace for Education in this particular case. Not sure it matters, but I suppose it might... |
I'll have a new version (6.11.05) in a few minutes. |
Thank you all again for your work and sharing on this! I'd found the OU ID as well as the path ID but was not sure how to implement. Your discussion has given me how much to look up and learn about. Thank you for that as well! |
6.11.05 is available. |
Ross, |
Subtle issue, will fix shortly.
--
***@***.***
… On Dec 13, 2021, at 1:17 PM, hoffjd ***@***.***> wrote:
Ross,
Thank you for the new version. I wanted to know you were successful in removing the error message. It now is reading the path without error and saying it added the device to the OU, but it is not doing it. When I check a device it is still in the original OU.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#225 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYL7NNA2YNUTZFLXZKX3UQZPFJANCNFSM5JW5UO2A>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Try 6.11.06; no error message and the move is actually performed. You can't just set the orgUnitId, you have to set orgUnitPath and orgUnitId.
--
***@***.***
… On Dec 13, 2021, at 1:17 PM, hoffjd ***@***.***> wrote:
Ross,
Thank you for the new version. I wanted to know you were successful in removing the error message. It now is reading the path without error and saying it added the device to the OU, but it is not doing it. When I check a device it is still in the original OU.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#225 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYL7NNA2YNUTZFLXZKX3UQZPFJANCNFSM5JW5UO2A>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thank you all for your help. I was able to download the new version this morning and tried out. I found that indeed it does eliminate the error message and move the devices, however sometimes it picks up extra devices. I'm looking into it now. My first test was moving a list of five devices. It did it perfectly. My next one was moving in list of 25 devices and it ended up moving 35. I've sorted out the 10 extra and did not find a reason why it moved those, yet. If you have any suggestions on what I might have done to cause that I am open. I may need to just wait for Google to get this fixed. Thank you so much John |
John,
Send me a Meet/Zoom invitation.
Ross
--
***@***.***
… On Dec 14, 2021, at 2:32 PM, hoffjd ***@***.***> wrote:
Thank you all for your help. I was able to download the new version this morning and tried out. I found that indeed it does eliminate the error message and move the devices, however sometimes it picks up extra devices. I'm looking into it now. My first test was moving a list of five devices. It did it perfectly. My next one was moving in list of 25 devices and it ended up moving 35. I've sorted out the 10 extra and did not find a reason why it moved those, yet. If you have any suggestions on what I might have done to cause that I am open. I may need to just wait for Google to get this fixed.
Thank you so much
John
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#225 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYL77EY4CZNONLKC4UOLUQ7AWPANCNFSM5JW5UO2A>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hey Ross, I'm having a similar issue. The move commands work if I specify the OU where the device already lives. Beyond that I'm getting the "Inconsistent Orgunit id and path" for any other OU whether it be some OU below the parent where the device lives or a completely different parent OU. It doesn't matter if I search by serial, asset, or the device id. Output from a few commands below followed by some debugs. Running the newest 64-bit version for Windows. gam version Works (OU where the device already lives): Doesn't work: Works: Works: Doesn't work: |
Do:
gam config update_cros_ou_with_id true save
This makes GAM pass an undocumented orgUnitID field in the API call which makes Googl1 happy.
Ross
--
***@***.***
… On Jan 31, 2022, at 9:02 AM, VUSD Technological Services ***@***.***> wrote:
Hey Ross,
I'm having a similar issue. The move commands work if I specify the OU where the device already lives. Beyond that I'm getting the "Inconsistent Orgunit id and path" for any other OU whether it be some OU below the parent where the device lives or a completely different parent OU. It doesn't matter if I search by serial, asset, or the device id. Output from a few commands below followed by some debugs. Running the newest 64-bit version for Windows.
gam version
GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 <https://github.com/taers232c/GAMADV-XTD3> - pyinstaller
Ross Scroggs ***@***.*** ***@***.***>
Python 3.10.2 64-bit final
Windows 10 10.0.19043 SP0 Multiprocessor Free AMD64
Path: C:\GAMADV-XTD3
Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, customer_id: my_customer, domain:
Works (OU where the device already lives):
gam cros_query "asset_id:89039259" update ou "/Chromebooks"
Getting all CrOS Devices that match query (asset_id:89039259), may take some time on a large Google Workspace Account...
Got 1 CrOS Device...
Got 1 CrOS Device that matched query (asset_id:89039259)
Organizational Unit: /Chromebooks, Add 1 CrOS Device
Organizational Unit: /Chromebooks, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Added
Doesn't work:
C:\Users\adam.brown>gam cros_query "asset_id:89039259" update ou "/Chromebooks/Lost or Stolen"
Getting all CrOS Devices that match query (asset_id:89039259), may take some time on a large Google Workspace Account...
Got 1 CrOS Device...
Got 1 CrOS Device that matched query (asset_id:89039259)
Organizational Unit: /Chromebooks/Lost or Stolen, Add 1 CrOS Device
Organizational Unit: /Chromebooks/Lost or Stolen, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Add Failed: 400: invalidInput - Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen
Works:
gam info ou "/Chromebooks/Lost or Stolen"
Organizational Unit: /Chromebooks/Lost or Stolen
orgUnitId: id:026pr45i0u0dpf8
name: Lost or Stolen
description:
parentOrgUnitPath: /Chromebooks
parentOrgUnitId: id:026pr45i3fkc5cc
blockInheritance: False
Users:
Total Users in Organizational Unit: 0
Works:
gam config debug_level 1 update cros 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24 ou "/Chromebooks"
connect: (admin.googleapis.com, 443)
send: b'GET /$discovery/rest?version=directory_v1 HTTP/1.1\r\nHost: admin.googleapis.com\r\ncontent-length: 0\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 <https://github.com/taers232c/GAMADV-XTD3> / Ross Scroggs ***@***.*** ***@***.***> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:09 GMT
header: Server: ESF
header: Content-Length: 314889
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
send: b'GET /admin/directory/v1/customer/my_customer/orgunits/Chromebooks?fields=orgUnitPath%2CorgUnitId&prettyPrint=true&alt=json HTTP/1.1\r\nHost: admin.googleapis.com\r\naccept: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 <https://github.com/taers232c/GAMADV-XTD3> / Ross Scroggs ***@***.*** ***@***.***> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 / (gzip)\r\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\r\ncontent-length: 0\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: ETag: "ERvsKfIk1xTO4nIkrnDVxrK3dQfxUu2uRkd83V67PKg/9CaTM8R7ptdNlf8JXpABJBlwo-M"
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Mon, 31 Jan 2022 16:49:09 GMT
header: Server: ESF
header: Cache-Control: private
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Transfer-Encoding: chunked
Organizational Unit: /Chromebooks, Add 1 CrOS Device
send: b'POST /batch HTTP/1.1\r\nHost: admin.googleapis.com\r\nContent-Length: 858\r\ncontent-type: multipart/mixed; boundary="===============8651827380916016981=="\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 <https://github.com/taers232c/GAMADV-XTD3> / Ross Scroggs ***@***.*** ***@***.***> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
send: b'--===============8651827380916016981==\nContent-Type: application/http\nMIME-Version: 1.0\nContent-Transfer-Encoding: binary\nContent-ID: <d04e47b4-f0b7-4342-b04b-b1c7d105e7c7 +\n %0A0%0A0%0A1%0A1%0A938ecb0e-7856-4e38-be8a-5bb7d1a3dc24>\n\nPATCH /admin/directory/v1/customer/my_customer/devices/chromeos/938ecb0e-7856-4e38-be8a-5bb7d1a3dc24?fields=&prettyPrint=true&alt=json HTTP/1.1\nContent-Type: application/json\nMIME-Version: 1.0\naccept: application/json\naccept-encoding: gzip, deflate\nuser-agent: (gzip)\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\nHost: admin.googleapis.com\ncontent-length: 31\n\n{"orgUnitPath": "/Chromebooks"}\n--===============8651827380916016981==--\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 7512
header: Content-Type: multipart/mixed; boundary=batch_6i2f3Wr1OASXEMSCUkGAPF9nafPJG3uw
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:10 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Organizational Unit: /Chromebooks, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Added
Doesn't work:
gam config debug_level 1 update cros 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24 ou "/Chromebooks/Lost or Stolen"
connect: (admin.googleapis.com, 443)
send: b'GET /$discovery/rest?version=directory_v1 HTTP/1.1\r\nHost: admin.googleapis.com\r\ncontent-length: 0\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 <https://github.com/taers232c/GAMADV-XTD3> / Ross Scroggs ***@***.*** ***@***.***> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:22 GMT
header: Server: ESF
header: Content-Length: 314889
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
send: b'GET /admin/directory/v1/customer/my_customer/orgunits/Chromebooks/Lost%20or%20Stolen?fields=orgUnitPath%2CorgUnitId&prettyPrint=true&alt=json HTTP/1.1\r\nHost: admin.googleapis.com\r\naccept: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 <https://github.com/taers232c/GAMADV-XTD3> / Ross Scroggs ***@***.*** ***@***.***> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 / (gzip)\r\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\r\ncontent-length: 0\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: ETag: "ERvsKfIk1xTO4nIkrnDVxrK3dQfxUu2uRkd83V67PKg/dgGeUzAzFA2WCzKzSTQ7Wllyyjc"
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Mon, 31 Jan 2022 16:49:22 GMT
header: Server: ESF
header: Cache-Control: private
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Transfer-Encoding: chunked
Organizational Unit: /Chromebooks/Lost or Stolen, Add 1 CrOS Device
send: b'POST /batch HTTP/1.1\r\nHost: admin.googleapis.com\r\nContent-Length: 873\r\ncontent-type: multipart/mixed; boundary="===============5308011806034951457=="\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3 <https://github.com/taers232c/GAMADV-XTD3> / Ross Scroggs ***@***.*** ***@***.***> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
send: b'--===============5308011806034951457==\nContent-Type: application/http\nMIME-Version: 1.0\nContent-Transfer-Encoding: binary\nContent-ID: <70ad642e-fa2a-43a0-b200-d113127c6b9b +\n %0A0%0A0%0A1%0A1%0A938ecb0e-7856-4e38-be8a-5bb7d1a3dc24>\n\nPATCH /admin/directory/v1/customer/my_customer/devices/chromeos/938ecb0e-7856-4e38-be8a-5bb7d1a3dc24?fields=&prettyPrint=true&alt=json HTTP/1.1\nContent-Type: application/json\nMIME-Version: 1.0\naccept: application/json\naccept-encoding: gzip, deflate\nuser-agent: (gzip)\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\nHost: admin.googleapis.com\ncontent-length: 46\n\n{"orgUnitPath": "/Chromebooks/Lost or Stolen"}\n--===============5308011806034951457==--\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 749
header: Content-Type: multipart/mixed; boundary=batch_hrkdIEHZ1QWLIUpsQ-CqsqYrxqpeYuUH
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:23 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
ERROR: JSON: {'error': {'code': 400, 'message': 'Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen', 'errors': [{'message': 'Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen', 'domain': 'global', 'reason': 'invalid'}]}}
Organizational Unit: /Chromebooks/Lost or Stolen, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Add Failed: 400: invalidInput - Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen
—
Reply to this email directly, view it on GitHub <#225 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYLZZR3QWSO4PAEK4CJDUY26BNANCNFSM5JW5UO2A>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.
|
Works great. Thanks Ross!
-Adam
From: Ross Scroggs ***@***.***>
Sent: Monday, January 31, 2022 9:16 AM
To: taers232c/GAMADV-XTD3 ***@***.***>
Cc: Brown, Adam ***@***.***>; Comment ***@***.***>
Subject: Re: [taers232c/GAMADV-XTD3] CrOS orgUnitPath change yields: Invalid Input: Inconsistent Orgunit id and path in request (Google API Bug?) (Issue #225)
This email did not come from a VUSD account. Security is everyone’s responsibility. If you question the authenticity or content of this email, ask before acting.
Do:
gam config update_cros_ou_with_id true save
This makes GAM pass an undocumented orgUnitID field in the API call which makes Googl1 happy.
Ross
--
***@***.***<mailto:***@***.***>
On Jan 31, 2022, at 9:02 AM, VUSD Technological Services ***@***.***<mailto:***@***.***>> wrote:
Hey Ross,
I'm having a similar issue. The move commands work if I specify the OU where the device already lives. Beyond that I'm getting the "Inconsistent Orgunit id and path" for any other OU whether it be some OU below the parent where the device lives or a completely different parent OU. It doesn't matter if I search by serial, asset, or the device id. Output from a few commands below followed by some debugs. Running the newest 64-bit version for Windows.
gam version
GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3> <https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3>> - pyinstaller
Ross Scroggs ***@***.***<mailto:***@***.***> ***@***.***<mailto:***@***.***>>
Python 3.10.2 64-bit final
Windows 10 10.0.19043 SP0 Multiprocessor Free AMD64
Path: C:\GAMADV-XTD3
Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, customer_id: my_customer, domain:
Works (OU where the device already lives):
gam cros_query "asset_id:89039259" update ou "/Chromebooks"
Getting all CrOS Devices that match query (asset_id:89039259), may take some time on a large Google Workspace Account...
Got 1 CrOS Device...
Got 1 CrOS Device that matched query (asset_id:89039259)
Organizational Unit: /Chromebooks, Add 1 CrOS Device
Organizational Unit: /Chromebooks, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Added
Doesn't work:
C:\Users\adam.brown>gam cros_query "asset_id:89039259" update ou "/Chromebooks/Lost or Stolen"
Getting all CrOS Devices that match query (asset_id:89039259), may take some time on a large Google Workspace Account...
Got 1 CrOS Device...
Got 1 CrOS Device that matched query (asset_id:89039259)
Organizational Unit: /Chromebooks/Lost or Stolen, Add 1 CrOS Device
Organizational Unit: /Chromebooks/Lost or Stolen, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Add Failed: 400: invalidInput - Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen
Works:
gam info ou "/Chromebooks/Lost or Stolen"
Organizational Unit: /Chromebooks/Lost or Stolen
orgUnitId: id:026pr45i0u0dpf8
name: Lost or Stolen
description:
parentOrgUnitPath: /Chromebooks
parentOrgUnitId: id:026pr45i3fkc5cc
blockInheritance: False
Users:
Total Users in Organizational Unit: 0
Works:
gam config debug_level 1 update cros 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24 ou "/Chromebooks"
connect: (admin.googleapis.com, 443)
send: b'GET /$discovery/rest?version=directory_v1 HTTP/1.1\r\nHost: admin.googleapis.com/r/ncontent-length<http://admin.googleapis.com/r/ncontent-length> 0\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3> <https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3>> / Ross Scroggs ***@***.***<mailto:***@***.***> ***@***.***<mailto:***@***.***>> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:09 GMT
header: Server: ESF
header: Content-Length: 314889
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
send: b'GET /admin/directory/v1/customer/my_customer/orgunits/Chromebooks?fields=orgUnitPath%2CorgUnitId&prettyPrint=true&alt=json HTTP/1.1\r\nHost: admin.googleapis.com/r/naccept<http://admin.googleapis.com/r/naccept> application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3> <https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3>> / Ross Scroggs ***@***.***<mailto:***@***.***> ***@***.***<mailto:***@***.***>> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 / (gzip)\r\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\r\ncontent-length: 0\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: ETag: "ERvsKfIk1xTO4nIkrnDVxrK3dQfxUu2uRkd83V67PKg/9CaTM8R7ptdNlf8JXpABJBlwo-M"
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Mon, 31 Jan 2022 16:49:09 GMT
header: Server: ESF
header: Cache-Control: private
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Transfer-Encoding: chunked
Organizational Unit: /Chromebooks, Add 1 CrOS Device
send: b'POST /batch HTTP/1.1\r\nHost: admin.googleapis.com/r/nContent-Length<http://admin.googleapis.com/r/nContent-Length> 858\r\ncontent-type: multipart/mixed; boundary="===============8651827380916016981=="\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3> <https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3>> / Ross Scroggs ***@***.***<mailto:***@***.***> ***@***.***<mailto:***@***.***>> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
send: b'--===============8651827380916016981==\nContent-Type: application/http\nMIME-Version: 1.0\nContent-Transfer-Encoding: binary\nContent-ID: <d04e47b4-f0b7-4342-b04b-b1c7d105e7c7 +\n %0A0%0A0%0A1%0A1%0A938ecb0e-7856-4e38-be8a-5bb7d1a3dc24>\n\nPATCH /admin/directory/v1/customer/my_customer/devices/chromeos/938ecb0e-7856-4e38-be8a-5bb7d1a3dc24?fields=&prettyPrint=true&alt=json HTTP/1.1\nContent-Type: application/json\nMIME-Version: 1.0\naccept: application/json\naccept-encoding: gzip, deflate\nuser-agent: (gzip)\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\nHost: admin.googleapis.com/ncontent-length<http://admin.googleapis.com/ncontent-length> 31\n\n{"orgUnitPath": "/Chromebooks"}\n--===============8651827380916016981==--\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 7512
header: Content-Type: multipart/mixed; boundary=batch_6i2f3Wr1OASXEMSCUkGAPF9nafPJG3uw
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:10 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Organizational Unit: /Chromebooks, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Added
Doesn't work:
gam config debug_level 1 update cros 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24 ou "/Chromebooks/Lost or Stolen"
connect: (admin.googleapis.com, 443)
send: b'GET /$discovery/rest?version=directory_v1 HTTP/1.1\r\nHost: admin.googleapis.com/r/ncontent-length<http://admin.googleapis.com/r/ncontent-length> 0\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3> <https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3>> / Ross Scroggs ***@***.***<mailto:***@***.***> ***@***.***<mailto:***@***.***>> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:22 GMT
header: Server: ESF
header: Content-Length: 314889
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
send: b'GET /admin/directory/v1/customer/my_customer/orgunits/Chromebooks/Lost%20or%20Stolen?fields=orgUnitPath%2CorgUnitId&prettyPrint=true&alt=json HTTP/1.1\r\nHost: admin.googleapis.com/r/naccept<http://admin.googleapis.com/r/naccept> application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3> <https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3>> / Ross Scroggs ***@***.***<mailto:***@***.***> ***@***.***<mailto:***@***.***>> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 / (gzip)\r\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\r\ncontent-length: 0\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: ETag: "ERvsKfIk1xTO4nIkrnDVxrK3dQfxUu2uRkd83V67PKg/dgGeUzAzFA2WCzKzSTQ7Wllyyjc"
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Mon, 31 Jan 2022 16:49:22 GMT
header: Server: ESF
header: Cache-Control: private
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Transfer-Encoding: chunked
Organizational Unit: /Chromebooks/Lost or Stolen, Add 1 CrOS Device
send: b'POST /batch HTTP/1.1\r\nHost: admin.googleapis.com/r/nContent-Length<http://admin.googleapis.com/r/nContent-Length> 873\r\ncontent-type: multipart/mixed; boundary="===============5308011806034951457=="\r\nuser-agent: GAMADV-XTD3 6.15.00 - https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3> <https://github.com/taers232c/GAMADV-XTD3<https://github.com/taers232c/GAMADV-XTD3>> / Ross Scroggs ***@***.***<mailto:***@***.***> ***@***.***<mailto:***@***.***>> / Python 3.10.2 final / Windows-10-10.0.19043-SP0 AMD64 /\r\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\r\naccept-encoding: gzip, deflate\r\n\r\n'
send: b'--===============5308011806034951457==\nContent-Type: application/http\nMIME-Version: 1.0\nContent-Transfer-Encoding: binary\nContent-ID: <70ad642e-fa2a-43a0-b200-d113127c6b9b +\n %0A0%0A0%0A1%0A1%0A938ecb0e-7856-4e38-be8a-5bb7d1a3dc24>\n\nPATCH /admin/directory/v1/customer/my_customer/devices/chromeos/938ecb0e-7856-4e38-be8a-5bb7d1a3dc24?fields=&prettyPrint=true&alt=json HTTP/1.1\nContent-Type: application/json\nMIME-Version: 1.0\naccept: application/json\naccept-encoding: gzip, deflate\nuser-agent: (gzip)\nx-goog-api-client: gdcl/2.36.0 gl-python/3.10.2\nauthorization: Bearer ya29.A0ARrdaM9rj7-Rzs-aCheCfQ-IoNkFaYrQHiuDzrlavi6NDsGvlBH1zLZvjcU6tfumPiKlkzxh977KIwImFmYtquYTgZ_q-TfZSXh6jeJLmOwPE5m_qRvg2vxRIBaSLnE2ZUKUu6XCog1FD_mbXhqBwzQqZT94LTI\nHost: admin.googleapis.com/ncontent-length<http://admin.googleapis.com/ncontent-length> 46\n\n{"orgUnitPath": "/Chromebooks/Lost or Stolen"}\n--===============5308011806034951457==--\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 749
header: Content-Type: multipart/mixed; boundary=batch_hrkdIEHZ1QWLIUpsQ-CqsqYrxqpeYuUH
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Date: Mon, 31 Jan 2022 16:49:23 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
ERROR: JSON: {'error': {'code': 400, 'message': 'Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen', 'errors': [{'message': 'Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen', 'domain': 'global', 'reason': 'invalid'}]}}
Organizational Unit: /Chromebooks/Lost or Stolen, CrOS Device: 938ecb0e-7856-4e38-be8a-5bb7d1a3dc24, Add Failed: 400: invalidInput - Invalid Input: Inconsistent Orgunit id and path in request - 8001708756041836, /Chromebooks/Lost or Stolen
—
Reply to this email directly, view it on GitHub <#225 (comment)<https://github.com/taers232c/GAMADV-XTD3/issues/225#issuecomment-1025999621>>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYLZZR3QWSO4PAEK4CJDUY26BNANCNFSM5JW5UO2A<https://github.com/notifications/unsubscribe-auth/ACCTYLZZR3QWSO4PAEK4CJDUY26BNANCNFSM5JW5UO2A>>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>>.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub<#225 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA5ARPKIFZ7K2YUPYCXOXNLUY27WZANCNFSM5JW5UO2A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
When attempting the following (redacted) command:
gam update cros xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx ou /Some/OU
The response:
Organizational Unit: /Some/OU, CrOS Device: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx, Add Failed: 400: invalidInput - Invalid Input: Inconsistent Orgunit id and path in request - yyyyyyyyyyyyyyy, /Some/OU
"yyyy..." is a long integer, not the actual OU's ID as returned by Google.
I originally noticed this error in a system I've written that is not related to GAM at all, but GAM is affected as well. I suspect something at Google changed with the update/patch call to CrOS units' orgUnitPath
Google searches point to a similar response back in 2015. Really old regression on Google's part?
The text was updated successfully, but these errors were encountered: