From c6b1a163afb66b6e1ea76b26a15dcdf12ad7906e Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 13 Sep 2017 16:08:33 -0400 Subject: [PATCH] throw error (that's caught) if delegated admin can't list parent OUs --- src/gam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gam.py b/src/gam.py index 7edba44e..41bc53c2 100755 --- a/src/gam.py +++ b/src/gam.py @@ -10265,7 +10265,7 @@ def doPrintOrgs(): for missing_parent in missing_parents: try: 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) except: pass