mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 05:33:34 +00:00
buildOrgUnitIdToNameMap only mapped top level org units
This commit is contained in:
@ -1688,7 +1688,7 @@ def buildOrgUnitIdToNameMap():
|
|||||||
cd = buildGAPIObject(u'directory')
|
cd = buildGAPIObject(u'directory')
|
||||||
result = callGAPI(cd.orgunits(), u'list',
|
result = callGAPI(cd.orgunits(), u'list',
|
||||||
customerId=GC_Values[GC_CUSTOMER_ID],
|
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] = {}
|
GM_Globals[GM_MAP_ORGUNIT_ID_TO_NAME] = {}
|
||||||
for orgUnit in result[u'organizationUnits']:
|
for orgUnit in result[u'organizationUnits']:
|
||||||
GM_Globals[GM_MAP_ORGUNIT_ID_TO_NAME][orgUnit[u'orgUnitId']] = orgUnit[u'orgUnitPath']
|
GM_Globals[GM_MAP_ORGUNIT_ID_TO_NAME][orgUnit[u'orgUnitId']] = orgUnit[u'orgUnitPath']
|
||||||
|
Reference in New Issue
Block a user