From 671f7d810cb81b469e69da2c1f9d3d6a440d3d34 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 11 Jan 2016 23:14:24 -0800 Subject: [PATCH] buildOrgUnitIdToNameMap only mapped top level org units --- src/gam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gam.py b/src/gam.py index 29427106..441eea5d 100755 --- a/src/gam.py +++ b/src/gam.py @@ -1688,7 +1688,7 @@ def buildOrgUnitIdToNameMap(): cd = buildGAPIObject(u'directory') result = callGAPI(cd.orgunits(), u'list', customerId=GC_Values[GC_CUSTOMER_ID], - fields=u'organizationUnits(orgUnitPath,orgUnitId)') + fields=u'organizationUnits(orgUnitPath,orgUnitId)', type=u'all') GM_Globals[GM_MAP_ORGUNIT_ID_TO_NAME] = {} for orgUnit in result[u'organizationUnits']: GM_Globals[GM_MAP_ORGUNIT_ID_TO_NAME][orgUnit[u'orgUnitId']] = orgUnit[u'orgUnitPath']