Quandry
When making a call to User GET in the Google Admin SDK's Directory API through the JVM client, null
is a valid value for orgUnitPath
according to documentation, but I can find no information on what this value implies about a user's position in the organisation.
What does a null value for this field mean? Our working assumption is that it is synonymous with the root organisation, but we have no supporting evidence for this theory, and we'd rather not guess what it means.
Attempt to Replicate
I have attempted to replicate this behaviour on a test Google Apps instance by patching a user through the API explorer with { "orgUnitPath": null }
, but the UserResource
that comes back (from the PATCH
and from subsequent GET
s) has the (expected) value of { "orgUnitPath": "/" }
.
Background
We currently map null
on this field to an error (since we are dependent on orgUnitPath for our logic). This has never come up for us in the past, but a problem arose today in a production environment when we encountered a null value on the field and logged an error. We could recycle our token to look more closely at the user to figure out what the null value implies, but we're reluctant to do so, as to respect our client's privacy we would want to reach out to them to do so. Since this is ultimately a result of an absence of documentation, I'm hoping to get a definitive response here on what the value means so we can handle it correctly in future.