From 90e11162a0b214865f5a42a6d445a03527617ff5 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Tue, 21 Oct 2025 12:13:57 -0700 Subject: [PATCH] Fixed bug in `gam claim ownership --- src/GamUpdate.txt | 7 ++++++- src/gam/__init__.py | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index 87ef07e8..c7198106 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,4 +1,9 @@ -7.26.00 +7.27.01 + +Fixed bug in `gam claim ownership ... onlyUsers|skipusers ` +where the email addresses in `onlyUsers|skipusers ` were not normalized. + +7.27.00 Added `debug_redaction` Boolean variable to `gam.cfg`. When True, the default, sensitive data like access/refresh tokens, client secret and authorization codes diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 13e954b8..89555081 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.27.00' +__version__ = '7.27.01' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' #pylint: disable=wrong-import-position @@ -64917,11 +64917,11 @@ def claimOwnership(users): elif myarg == 'onlyusers': _, userList = getEntityToModify(defaultEntityType=Cmd.ENTITY_USERS) checkOnly = True - onlyOwners = set(userList) + onlyOwners = {normalizeEmailAddressOrUID(user, noUid=True) for user in userList} elif myarg == 'skipusers': _, userList = getEntityToModify(defaultEntityType=Cmd.ENTITY_USERS) checkSkip = len(userList) > 0 - skipOwners = set(userList) + skipOwners = {normalizeEmailAddressOrUID(user, noUid=True) for user in userList} elif myarg == 'subdomains': subdomains = getEntityList(Cmd.OB_DOMAIN_NAME_ENTITY) elif myarg == 'includetrashed':