Fixed bug in `gam <UserTypeEntity> claim ownership

This commit is contained in:
Ross Scroggs
2025-10-21 12:13:57 -07:00
parent b11617c1ea
commit 90e11162a0
2 changed files with 9 additions and 4 deletions

View File

@@ -1,4 +1,9 @@
7.26.00
7.27.01
Fixed bug in `gam <UserTypeEntity> claim ownership <DriveFileEntity> ... onlyUsers|skipusers <UserTypeEntity>`
where the email addresses in `onlyUsers|skipusers <UserTypeEntity>` 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

View File

@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
"""
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
__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':