mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
throw error (that's caught) if delegated admin can't list parent OUs
This commit is contained in:
@@ -10265,7 +10265,7 @@ def doPrintOrgs():
|
|||||||
for missing_parent in missing_parents:
|
for missing_parent in missing_parents:
|
||||||
try:
|
try:
|
||||||
result = callGAPI(cd.orgunits(), u'get',
|
result = callGAPI(cd.orgunits(), u'get',
|
||||||
customerId=GC_Values[GC_CUSTOMER_ID], orgUnitPath=missing_parent, fields=get_fields)
|
customerId=GC_Values[GC_CUSTOMER_ID], orgUnitPath=missing_parent, fields=get_fields, throw_reasons=[u'required'])
|
||||||
orgunits.append(result)
|
orgunits.append(result)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user