Skip to content

Commit

Permalink
Fix bugs with groups and DASA
Browse files Browse the repository at this point in the history
  • Loading branch information
taers232c committed Sep 27, 2024
1 parent 9dc87a0 commit 46d05e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65815,6 +65815,7 @@ def updateUserGroups(users):
baseRole = getChoice(GROUP_ROLES_MAP, defaultChoice=Ent.ROLE_MEMBER, mapChoice=True)
baseDeliverySettings = getDeliverySettings()
if not kwargs:
kwargs = {'customer': GC.Values[GC.CUSTOMER_ID]}
if Cmd.ArgumentsRemaining():
groupKeys = getEntityList(Cmd.OB_GROUP_ENTITY)
subkeyRoleField = GM.Globals[GM.CSV_SUBKEY_FIELD]
Expand Down Expand Up @@ -65875,6 +65876,8 @@ def updateUserGroups(users):
def syncUserWithGroups(users):
cd = buildGAPIObject(API.DIRECTORY)
kwargs = _getUserGroupOptionalDomainCustomerId()
if not kwargs:
kwargs = {'customer': GC.Values[GC.CUSTOMER_ID]}
baseRole = getChoice(GROUP_ROLES_MAP, defaultChoice=Ent.ROLE_MEMBER, mapChoice=True)
baseDeliverySettings = getDeliverySettings()
groupKeys = getEntityList(Cmd.OB_GROUP_ENTITY)
Expand Down

0 comments on commit 46d05e3

Please sign in to comment.