Second level orgunit not found

I'm using the google admin api class to check for organization units. First level works, but second level fails. I've tried putting it in single quotes as per other posts, but still won't find it, and I get Yes No everytime. This seems to have started happening about two months ago. Anything that would have changed?

// This returns all of them
//$units = $google_client->getOrgUnits('my_customer', ["type" => "ALL"]);

if ($google_client->OrgUnitExists('my_customer', "A")) {
    echo "Yes\r\n";
    if ($google_client->OrgUnitExists('my_customer', "A/B")) {
      echo "Yes\r\n";
    }
    else {
      echo "No\r\n";
    }
  }
  else {
    echo "No\r\n";
  }


Read more here: https://stackoverflow.com/questions/68464397/second-level-orgunit-not-found

Content Attribution

This content was originally published by Alex at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: